/* ==========================================================================
   Smart Home Lists – frontend styles
   Everything is namespaced under .shl so it plays nicely with any theme.
   ========================================================================== */

.shl {
	--shl-font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--shl-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

	--shl-bg: #ffffff;
	--shl-bg-soft: #f6f7fb;
	--shl-surface: #ffffff;
	--shl-surface-2: #f1f3f9;
	--shl-border: #e5e8f0;
	--shl-border-strong: #d3d8e4;
	--shl-text: #0f172a;
	--shl-text-2: #4a5568;
	--shl-text-3: #64748b;

	--shl-primary: #4f46e5;
	--shl-primary-2: #6366f1;
	--shl-primary-soft: #eef2ff;

	--shl-green: #15803d;
	--shl-green-soft: #dcfce7;
	--shl-amber: #b45309;
	--shl-amber-soft: #fef3c7;
	--shl-red: #b91c1c;
	--shl-red-soft: #fee2e2;
	--shl-blue: #1d4ed8;
	--shl-blue-soft: #dbeafe;
	--shl-grey: #64748b;
	--shl-grey-soft: #e9edf3;

	--shl-radius: 16px;
	--shl-radius-sm: 10px;
	--shl-radius-pill: 999px;
	--shl-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--shl-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
	--shl-shadow-lg: 0 30px 70px -25px rgba(15, 23, 42, 0.45);
	--shl-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

	font-family: var(--shl-font);
	color: var(--shl-text);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.shl *,
.shl *::before,
.shl *::after {
	box-sizing: inherit;
}

.shl [hidden],
.shl[hidden] {
	display: none !important;
}

/* Dark palette – applied by the script once it knows what the page behind
   the widget looks like, or forced through the setting. */
.shl--dark,
.shl--is-dark,
[data-theme="dark"] .shl {
	--shl-bg: #0b1020;
	--shl-bg-soft: #0f172a;
	--shl-surface: #111a2e;
	--shl-surface-2: #172236;
	--shl-border: #22304a;
	--shl-border-strong: #33456a;
	--shl-text: #e6eaf3;
	--shl-text-2: #a8b4c9;
	--shl-text-3: #9aa8c0;
	--shl-primary: #818cf8;
	--shl-primary-2: #a5b4fc;
	--shl-primary-soft: rgba(129, 140, 248, 0.16);
	--shl-green: #4ade80;
	--shl-green-soft: rgba(34, 197, 94, 0.18);
	--shl-amber: #fbbf24;
	--shl-amber-soft: rgba(245, 158, 11, 0.18);
	--shl-red: #f87171;
	--shl-red-soft: rgba(239, 68, 68, 0.18);
	--shl-blue: #60a5fa;
	--shl-blue-soft: rgba(59, 130, 246, 0.18);
	--shl-grey: #94a3b8;
	--shl-grey-soft: rgba(148, 163, 184, 0.16);
}

/* Brand colours are chosen against white. On the dark surface a dark green
   or navy logo drops below readable contrast, so it is lifted towards the
   text colour. */
.shl--dark .shl-avatar,
.shl--is-dark .shl-avatar,
[data-theme="dark"] .shl .shl-avatar {
	color: color-mix(in srgb, var(--shl-c) 55%, var(--shl-text));
	background: color-mix(in srgb, var(--shl-c) 24%, transparent);
}

.shl--dark .shl-avatar--img,
.shl--is-dark .shl-avatar--img,
[data-theme="dark"] .shl .shl-avatar--img {
	background: var(--shl-surface-2);
}

/* The surrounding theme must not reach inside. Astra and others colour
   headings and labels with element selectors ("h1, h2, h3 …", "label,
   legend"), which beat inheritance – on a dark card that leaves dark text
   on dark ground. These selectors outrank them without touching the
   plugin's own component colours. */
.shl h1,
.shl h2,
.shl h3,
.shl h4,
.shl h5,
.shl h6,
.shl label,
.shl legend,
.shl dt,
.shl dd,
.shl th,
.shl td,
.shl caption,
.shl figcaption {
	color: var(--shl-text);
}

/* Form controls the same way, but with zero specificity for the elements
   themselves: .shl-btn--primary and friends must keep their own colour. */
.shl :where(input, select, textarea, button, optgroup, option) {
	color: var(--shl-text);
}

/* Inline text only inherits – zero specificity, so every component rule
   further down keeps the last word on its own colour. */
.shl :where(p, li, span, small, strong, em, b, i, time, address) {
	color: inherit;
}

.shl-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.shl-hp {
	position: absolute !important;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.shl-note {
	color: var(--shl-text-2);
	background: var(--shl-surface-2);
	padding: 0.7rem 0.9rem;
	border-radius: var(--shl-radius-sm);
	font-size: 0.9rem;
}

.shl-icon {
	flex: none;
	vertical-align: -3px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.shl-hero {
	position: relative;
	overflow: hidden;
	border-radius: var(--shl-radius);
	background: linear-gradient(160deg, var(--shl-surface-2), var(--shl-surface));
	border: 1px solid var(--shl-border);
	padding: clamp(1.5rem, 4vw, 3rem);
	margin-bottom: 1.25rem;
}

.shl-hero__glow {
	position: absolute;
	inset: -40% 40% 40% -20%;
	background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--shl-primary) 30%, transparent), transparent 60%);
	filter: blur(30px);
	pointer-events: none;
}

.shl-hero__inner {
	position: relative;
	max-width: 62ch;
}

.shl-hero__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.7rem, 3.6vw, 2.6rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 800;
	color: var(--shl-text);
}

.shl-hero__intro {
	margin: 0;
	color: var(--shl-text-2);
	font-size: 1.02rem;
}

.shl-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1.75rem;
	margin-top: 1.5rem;
}

.shl-hero__stat {
	display: flex;
	flex-direction: column;
}

.shl-hero__stat strong {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.shl-hero__stat span {
	font-size: 0.8rem;
	color: var(--shl-text-3);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Buttons, inputs, chips
   -------------------------------------------------------------------------- */

.shl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 14px;
	border-radius: 11px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	color: var(--shl-text);
	background: var(--shl-surface);
	transition: transform 0.15s var(--shl-ease), background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
	white-space: nowrap;
}

.shl-btn:hover { transform: translateY(-1px); }
.shl-btn:active { transform: translateY(0); }
.shl-btn:focus-visible { outline: 2px solid var(--shl-primary); outline-offset: 2px; }

.shl-btn--primary {
	background: linear-gradient(135deg, var(--shl-primary), var(--shl-primary-2));
	color: #fff;
	box-shadow: 0 8px 20px -10px var(--shl-primary);
}
.shl-btn--primary:hover { color: #fff; box-shadow: 0 12px 26px -10px var(--shl-primary); }

.shl-btn--ghost { border-color: var(--shl-border); background: var(--shl-surface); }
.shl-btn--ghost:hover { border-color: var(--shl-border-strong); background: var(--shl-surface-2); }

.shl-btn--soft { background: var(--shl-primary-soft); color: var(--shl-primary); }
.shl-btn--soft:hover { background: color-mix(in srgb, var(--shl-primary) 22%, transparent); color: var(--shl-primary); }

.shl-btn--link { background: transparent; color: var(--shl-primary); padding-inline: 6px; }

.shl-btn--icon { padding: 8px; border-color: var(--shl-border); color: var(--shl-text-2); }
.shl-btn--icon:hover { color: var(--shl-primary); border-color: var(--shl-primary); }
.shl-btn--icon.is-active { color: var(--shl-primary); border-color: var(--shl-primary); background: var(--shl-primary-soft); }

.shl-btn--sm { padding: 6px 10px; font-size: 0.8rem; border-radius: 9px; }
.shl-btn--lg { padding: 12px 20px; font-size: 0.98rem; border-radius: 13px; }

.shl-btn.is-copied { background: var(--shl-green-soft); color: var(--shl-green); border-color: transparent; }
.shl-btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

.shl input[type="search"],
.shl input[type="text"],
.shl input[type="url"],
.shl input[type="email"],
.shl input[type="number"],
.shl textarea,
.shl select {
	font: inherit;
	font-size: 0.9rem;
	color: var(--shl-text);
	background: var(--shl-surface);
	border: 1px solid var(--shl-border);
	border-radius: 10px;
	padding: 9px 12px;
	width: 100%;
	max-width: none;
	margin: 0;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.shl input:focus,
.shl textarea:focus,
.shl select:focus {
	outline: none;
	border-color: var(--shl-primary);
	box-shadow: 0 0 0 3px var(--shl-primary-soft);
}

.shl-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 0.85rem;
	color: var(--shl-text-2);
}

.shl-field--wide { grid-column: 1 / -1; }
.shl-field__hint { font-size: 0.72rem; color: var(--shl-text-3); }

.shl-select {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.shl-select > select {
	appearance: none;
	padding-right: 30px;
	background: var(--shl-surface);
	cursor: pointer;
}

.shl-select > .shl-icon {
	position: absolute;
	right: 10px;
	pointer-events: none;
	color: var(--shl-text-3);
}

.shl-select--filter { flex-direction: column; align-items: flex-start; gap: 4px; }
.shl-select--filter > span { font-size: 0.75rem; color: var(--shl-text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.shl-select--filter > .shl-icon { top: 30px; }
.shl-select--sm > select { padding: 6px 28px 6px 10px; font-size: 0.8rem; }

.shl-range { display: flex; flex-direction: column; gap: 4px; }
.shl-range > span { font-size: 0.75rem; color: var(--shl-text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.shl-range input { max-width: 120px; }

.shl-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	cursor: pointer;
	user-select: none;
}

.shl-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.shl-toggle__track {
	position: relative;
	width: 38px;
	height: 22px;
	border-radius: 999px;
	background: var(--shl-surface-2);
	border: 1px solid var(--shl-border);
	transition: background 0.15s, border-color 0.15s;
	flex: none;
}

.shl-toggle__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--shl-text-3);
	transition: transform 0.18s var(--shl-ease), background 0.15s;
}

.shl-toggle input:checked + .shl-toggle__track { background: var(--shl-primary-soft); border-color: var(--shl-primary); }
.shl-toggle input:checked + .shl-toggle__track::after { transform: translateX(16px); background: var(--shl-primary); }
.shl-toggle input:focus-visible + .shl-toggle__track { outline: 2px solid var(--shl-primary); outline-offset: 2px; }

.shl-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border-radius: var(--shl-radius-pill);
	border: 1px solid var(--shl-border);
	background: var(--shl-surface);
	color: var(--shl-text-2);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s var(--shl-ease);
}

.shl-chip:hover { border-color: var(--shl-border-strong); color: var(--shl-text); transform: translateY(-1px); }
.shl-chip.is-active { background: var(--shl-primary-soft); border-color: var(--shl-primary); color: var(--shl-primary); }
.shl-chip__count { color: var(--shl-text-3); font-weight: 600; font-size: 0.72rem; }
.shl-chip.is-active .shl-chip__count { color: inherit; opacity: 0.8; }
.shl-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--shl-c, var(--shl-primary)); flex: none; }
.shl-chip input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.shl-chip:has(input:checked) { background: var(--shl-primary-soft); border-color: var(--shl-primary); color: var(--shl-primary); }

.shl-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.shl-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: var(--shl-radius-pill);
	background: var(--shl-surface-2);
	color: var(--shl-text-2);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid transparent;
}

a.shl-tag:hover { border-color: var(--shl-border-strong); color: var(--shl-text); }
.shl-tag--protocol { background: color-mix(in srgb, var(--shl-c, var(--shl-primary)) 14%, transparent); color: var(--shl-c, var(--shl-primary)); }
.shl-tag--ok { background: var(--shl-green-soft); color: var(--shl-green); }

.shl-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 7px;
	border-radius: 7px;
	font-size: 0.68rem;
	font-weight: 700;
}

.shl-badge--featured { background: var(--shl-amber-soft); color: var(--shl-amber); }
.shl-badge--certified { background: var(--shl-blue-soft); color: var(--shl-blue); }
.shl-badge--best { background: var(--shl-green-soft); color: var(--shl-green); }

.shl-badge-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--shl-primary);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
}

.shl-avatar {
	--shl-c: var(--shl-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: color-mix(in srgb, var(--shl-c) 16%, transparent);
	/* Markenfarben sind fuer Weiss gewaehlt; zur Textfarbe hin gemischt
	   bleiben sie erkennbar und werden lesbar. */
	color: color-mix(in srgb, var(--shl-c) 60%, var(--shl-text));
	font-size: 0.68rem;
	font-weight: 700;
	overflow: hidden;
}

.shl-avatar--xs { width: 22px; height: 22px; border-radius: 7px; font-size: 0.58rem; }
.shl-avatar--sm { width: 26px; height: 26px; border-radius: 8px; }
.shl-avatar--lg { width: 42px; height: 42px; border-radius: 12px; font-size: 0.85rem; }
.shl-avatar--img { background: var(--shl-surface-2); padding: 3px; }
.shl-avatar--img img { width: 100%; height: 100%; object-fit: contain; }
.shl-avatar--logo { background: color-mix(in srgb, var(--shl-c) 14%, transparent); color: color-mix(in srgb, var(--shl-c) 60%, var(--shl-text)); }
.shl-avatar--logo .shl-logo { display: block; }

/* Compatible systems: logo badge with a status ring */
.shl-systems { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }

.shl-system {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px;
	border-radius: 9px;
	border: 1.5px solid var(--shl-tone, var(--shl-border));
	background: var(--shl-surface);
	line-height: 0;
}

.shl-system--green { --shl-tone: var(--shl-green); }
.shl-system--amber { --shl-tone: var(--shl-amber); }
.shl-system--blue  { --shl-tone: var(--shl-blue); }
.shl-system--red   { --shl-tone: var(--shl-red); opacity: 0.55; }
.shl-system--grey  { --shl-tone: var(--shl-border-strong); opacity: 0.75; }

.shl-system--more {
	padding: 0 7px;
	height: 26px;
	border-style: dashed;
	color: var(--shl-text-3);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 23px;
}

.shl-system::after {
	content: "";
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--shl-tone);
	border: 1.5px solid var(--shl-surface);
}

.shl-system--grey::after,
.shl-system--more::after { display: none; }

.shl-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--shl-grey);
	flex: none;
}

.shl-dot--green { background: var(--shl-green); box-shadow: 0 0 0 3px var(--shl-green-soft); }
.shl-dot--amber { background: var(--shl-amber); box-shadow: 0 0 0 3px var(--shl-amber-soft); }
.shl-dot--red { background: var(--shl-red); box-shadow: 0 0 0 3px var(--shl-red-soft); }
.shl-dot--blue { background: var(--shl-blue); box-shadow: 0 0 0 3px var(--shl-blue-soft); }
.shl-dot--grey { background: var(--shl-grey); box-shadow: 0 0 0 3px var(--shl-grey-soft); }

.shl-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: var(--shl-radius-pill);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	background: var(--shl-grey-soft);
	color: var(--shl-text-2);
}

.shl-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.shl-pill--green { background: var(--shl-green-soft); color: var(--shl-green); }
.shl-pill--amber { background: var(--shl-amber-soft); color: var(--shl-amber); }
.shl-pill--red { background: var(--shl-red-soft); color: var(--shl-red); }
.shl-pill--blue { background: var(--shl-blue-soft); color: var(--shl-blue); }
.shl-pill--grey { background: var(--shl-grey-soft); color: var(--shl-grey); }
.shl-pill--more { background: var(--shl-surface-2); color: var(--shl-text-3); }

/* --------------------------------------------------------------------------
   Toolbar, tabs, filters
   -------------------------------------------------------------------------- */

.shl-toolbar {
	position: sticky;
	top: var(--shl-sticky-top, 0px);
	z-index: 20;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	margin-bottom: 12px;
	border-radius: var(--shl-radius);
	border: 1px solid var(--shl-border);
	background: color-mix(in srgb, var(--shl-bg) 82%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: var(--shl-shadow-sm);
}

.shl-toolbar__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.shl-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 260px;
	min-width: 200px;
}

.shl-search > .shl-icon { position: absolute; left: 12px; color: var(--shl-text-3); pointer-events: none; }
.shl-search input { padding-left: 38px; padding-right: 34px; border-radius: 12px; }
.shl-search__clear {
	position: absolute;
	right: 8px;
	display: inline-flex;
	padding: 4px;
	border: 0;
	background: transparent;
	color: var(--shl-text-3);
	cursor: pointer;
	border-radius: 6px;
}
.shl-search__clear:hover { color: var(--shl-text); background: var(--shl-surface-2); }

.shl-toolbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.shl-viewtoggle { display: inline-flex; gap: 4px; }

.shl-typeahead {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 30;
	max-height: 340px;
	overflow-y: auto;
	background: var(--shl-surface);
	border: 1px solid var(--shl-border);
	border-radius: 12px;
	box-shadow: var(--shl-shadow);
	padding: 6px;
}

.shl-typeahead__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 9px;
	border-radius: 9px;
	text-decoration: none;
	color: var(--shl-text);
}
.shl-typeahead__item:hover,
.shl-typeahead__item.is-active { background: var(--shl-surface-2); }
.shl-typeahead__item img { width: 32px; height: 32px; object-fit: contain; border-radius: 7px; background: var(--shl-surface-2); }
.shl-typeahead__meta { display: block; font-size: 0.75rem; color: var(--shl-text-3); }

.shl-tabs { overflow: hidden; }
.shl-tabs__scroller {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: thin;
	padding-bottom: 2px;
}
.shl-tabs__scroller::-webkit-scrollbar { height: 4px; }
.shl-tabs__scroller::-webkit-scrollbar-thumb { background: var(--shl-border-strong); border-radius: 4px; }

.shl-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--shl-text-2);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.shl-tab:hover { background: var(--shl-surface-2); color: var(--shl-text); }
.shl-tab.is-active {
	background: color-mix(in srgb, var(--shl-c, var(--shl-primary)) 12%, transparent);
	border-color: color-mix(in srgb, var(--shl-c, var(--shl-primary)) 40%, transparent);
	color: var(--shl-text);
}
.shl-tab__count { font-size: 0.72rem; color: var(--shl-text-3); font-weight: 700; }

.shl-tabs--pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.shl-tabs--pills .shl-tab { border: 1px solid var(--shl-border); }

.shl-integrations {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 2px;
	border-top: 1px dashed var(--shl-border);
}

.shl-integrations__label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--shl-text-3);
	font-weight: 700;
	white-space: nowrap;
	padding-top: 6px;
}

.shl-integrations__scroller {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 6px 2px;
	scrollbar-width: thin;
	flex: 1;
}

.shl-filters {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	margin-bottom: 14px;
	border: 1px solid var(--shl-border);
	border-radius: var(--shl-radius);
	background: var(--shl-surface);
}

.shl-filters__group { display: flex; flex-direction: column; gap: 8px; }
.shl-filters__label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--shl-text-3);
	font-weight: 700;
}
.shl-filters__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
}

.shl-results {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 0.85rem;
	color: var(--shl-text-2);
}

.shl-results__count { font-weight: 700; color: var(--shl-text); }
.shl-results__legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--shl-text-3); font-size: 0.78rem; }
.shl-legend { display: inline-flex; align-items: center; gap: 6px; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.shl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}

.shl-grid--related { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.shl-card {
	display: flex;
	flex-direction: column;
	background: var(--shl-surface);
	border: 1px solid var(--shl-border);
	border-radius: var(--shl-radius);
	overflow: hidden;
	transition: transform 0.18s var(--shl-ease), box-shadow 0.18s, border-color 0.18s;
}

.shl-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shl-shadow);
	border-color: var(--shl-border-strong);
}

.shl-card.is-featured { border-color: color-mix(in srgb, var(--shl-amber) 45%, var(--shl-border)); }

.shl-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	background: var(--shl-surface-2);
	overflow: hidden;
}

.shl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 12px;
	transition: transform 0.35s var(--shl-ease);
}

.shl-card:hover .shl-card__media img { transform: scale(1.04); }
.shl-card__placeholder { color: var(--shl-text-3); }

.shl-card__flags { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; }

.shl-card__body { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px 8px; flex: 1; }

.shl-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.shl-card__brand {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--shl-text-3);
}

.shl-card__title { margin: 0; font-size: 1rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.shl-card__title a { color: inherit; text-decoration: none; }
.shl-card__title a:hover { color: var(--shl-primary); }

.shl-card__model code {
	font-family: var(--shl-mono);
	font-size: 0.72rem;
	color: var(--shl-text-2);
	background: var(--shl-surface-2);
	padding: 1px 6px;
	border-radius: 6px;
}

.shl-card__excerpt { margin: 0; font-size: 0.83rem; color: var(--shl-text-2); }
.shl-card__compat { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: auto; padding-top: 6px; }
.shl-card__compat-label {
	width: 100%;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--shl-text-3);
}

.shl-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px 12px;
	border-top: 1px solid var(--shl-border);
}

.shl-card__price { display: flex; flex-direction: column; gap: 1px; }
.shl-price { font-size: 0.95rem; }
.shl-price__from { font-size: 0.72rem; color: var(--shl-text-3); }
.shl-price__shops { font-size: 0.7rem; color: var(--shl-text-3); }
.shl-card__power { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--shl-text-3); }
.shl-card__actions { display: flex; align-items: center; gap: 6px; }

.shl-empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 3rem 1rem;
	color: var(--shl-text-3);
	text-align: center;
	border: 1px dashed var(--shl-border);
	border-radius: var(--shl-radius);
}

.shl-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 20px 0;
}
.shl-pagination__info { font-size: 0.82rem; color: var(--shl-text-3); }

/* Table view of the directory */
.shl-grid--table { display: block; }
.shl-grid--table .shl-card {
	display: grid;
	grid-template-columns: 68px 1.4fr 1.6fr auto;
	align-items: center;
	gap: 12px;
	border-radius: var(--shl-radius-sm);
	margin-bottom: 8px;
	padding: 8px 12px;
}
.shl-grid--table .shl-card__media { aspect-ratio: 1; border-radius: 10px; }
.shl-grid--table .shl-card__media img { padding: 6px; }
.shl-grid--table .shl-card__body { padding: 0; gap: 4px; }
.shl-grid--table .shl-card__excerpt { display: none; }
.shl-grid--table .shl-card__foot { border: 0; padding: 0; }

@media (max-width: 640px) {
	.shl-grid--table .shl-card { grid-template-columns: 56px 1fr; }
	.shl-grid--table .shl-card__foot { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Single device page
   -------------------------------------------------------------------------- */

.shl-device { display: flex; flex-direction: column; gap: 22px; }

.shl-device__summary {
	display: grid;
	grid-template-columns: minmax(200px, 340px) 1fr;
	gap: 24px;
	align-items: start;
	padding: 18px;
	border: 1px solid var(--shl-border);
	border-radius: var(--shl-radius);
	background: var(--shl-surface);
}

@media (max-width: 720px) {
	.shl-device__summary { grid-template-columns: 1fr; }
}

.shl-device__gallery {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: var(--shl-surface-2);
	border-radius: var(--shl-radius-sm);
	overflow: hidden;
}
.shl-device__gallery img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }

.shl-device__intro { display: flex; flex-direction: column; gap: 12px; }
.shl-device__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.shl-device__lead { margin: 0; font-size: 1rem; color: var(--shl-text-2); }
.shl-device__features { display: flex; flex-wrap: wrap; gap: 6px; }

.shl-device__systems { display: flex; flex-direction: column; gap: 6px; }
.shl-device__systems-label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--shl-text-3);
}
.shl-device__systems-link { text-decoration: none; }
.shl-device__compat-line {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.6;
	color: var(--shl-text-3);
}
.shl-device__compat-line a { color: var(--shl-text-2); text-decoration: none; border-bottom: 1px solid var(--shl-line); }
.shl-device__compat-line a:hover { color: var(--shl-accent); border-bottom-color: currentColor; }
.shl-device__systems .shl-avatar { width: 26px; height: 26px; }
.shl-device__systems .shl-avatar .shl-logo { width: 16px; height: 16px; }

.shl-modal__systems { margin-bottom: 10px; }
.shl-matrix__head { display: inline-flex; align-items: center; gap: 6px; }
.shl-device__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.shl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 18px; margin: 0; }
.shl-facts__row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--shl-border); }
.shl-facts dt { color: var(--shl-text-3); font-size: 0.8rem; margin: 0; }
.shl-facts dd { margin: 0; font-size: 0.85rem; font-weight: 600; text-align: right; }

.shl-section {
	padding: 18px;
	border: 1px solid var(--shl-border);
	border-radius: var(--shl-radius);
	background: var(--shl-surface);
}

.shl-section--content { background: transparent; border: 0; padding: 0; }

.shl-section__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 14px;
	font-size: 1.15rem;
	font-weight: 750;
	letter-spacing: -0.01em;
}
.shl-section__title .shl-icon { color: var(--shl-primary); }
.shl-section__sub { margin: 18px 0 8px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--shl-text-3); }
.shl-section__sub:first-of-type { margin-top: 0; }

.shl-prose { font-size: 0.95rem; color: var(--shl-text); }
.shl-prose ol, .shl-prose ul { padding-left: 1.3em; }
.shl-prose li { margin: 0.35em 0; }
.shl-prose code {
	font-family: var(--shl-mono);
	font-size: 0.85em;
	background: var(--shl-surface-2);
	padding: 1px 5px;
	border-radius: 5px;
}

.shl-table-wrap { overflow-x: auto; }
.shl-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.shl-table th, .shl-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--shl-border); vertical-align: middle; }
.shl-table thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--shl-text-3); font-weight: 700; }
.shl-table tbody tr:hover { background: var(--shl-surface-2); }
.shl-table code { font-family: var(--shl-mono); font-size: 0.8rem; }
.shl-cell-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.shl-cell-name a { color: inherit; text-decoration: none; }
.shl-cell-name a:hover { color: var(--shl-primary); }

.shl-table--matrix th[scope="col"] { white-space: nowrap; }
.shl-table--matrix .shl-matrix__cell { text-align: center; }
.shl-table--matrix th[scope="row"] small { display: block; font-weight: 400; color: var(--shl-text-3); }

.shl-report { margin-top: 16px; border-top: 1px dashed var(--shl-border); padding-top: 12px; }
.shl-report > summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--shl-primary); }
.shl-report__form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.shl-report__row { display: flex; flex-wrap: wrap; gap: 12px; }
.shl-report__foot { display: flex; align-items: center; gap: 12px; }
.shl-report__msg, .shl-submit__msg { font-size: 0.85rem; color: var(--shl-text-2); }
.shl-report__msg.is-ok, .shl-submit__msg.is-ok { color: var(--shl-green); }
.shl-report__msg.is-error, .shl-submit__msg.is-error { color: var(--shl-red); }

.shl-setup { padding-top: 4px; }

/* Product box & price comparison */
.shl-product-box { margin-bottom: 16px; }
.shl-disclosure { font-size: 0.75rem; color: var(--shl-text-3); margin: 10px 0 0; }

.shl-compare { border: 1px solid var(--shl-border); border-radius: var(--shl-radius-sm); overflow: hidden; }
.shl-compare__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	background: var(--shl-surface-2);
}
.shl-compare__title { font-weight: 700; font-size: 0.9rem; }
.shl-compare__updated { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--shl-text-3); }
.shl-compare__list { list-style: none; margin: 0; padding: 0; }
.shl-compare__row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-top: 1px solid var(--shl-border);
}
.shl-compare__row.is-best { background: color-mix(in srgb, var(--shl-green) 7%, transparent); }
.shl-compare__shop { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.shl-compare__shop img { width: 22px; height: 22px; object-fit: contain; }
.shl-compare__price { font-weight: 800; font-variant-numeric: tabular-nums; }
.shl-compare__note { font-size: 0.72rem; color: var(--shl-text-3); margin: 0; padding: 9px 14px; border-top: 1px solid var(--shl-border); }

@media (max-width: 520px) {
	.shl-compare__row { grid-template-columns: 1fr auto; }
	.shl-compare__row .shl-btn { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Embeds
   -------------------------------------------------------------------------- */

.shl-embed { margin: 1.5rem 0; }
.shl-embed__title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 1.1rem; font-weight: 750; }
.shl-embed__count { font-size: 0.8rem; color: var(--shl-text-3); font-weight: 600; }
.shl-embed__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.shl-embed__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--shl-border);
	border-radius: var(--shl-radius-sm);
	background: var(--shl-surface);
}
.shl-embed__thumb { flex: none; width: 48px; height: 48px; border-radius: 9px; overflow: hidden; background: var(--shl-surface-2); }
.shl-embed__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.shl-embed__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.shl-embed__name { font-weight: 700; color: inherit; text-decoration: none; }
.shl-embed__name:hover { color: var(--shl-primary); }
.shl-embed__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.75rem; color: var(--shl-text-3); }
.shl-embed__compat { display: flex; flex-wrap: wrap; gap: 4px; }
.shl-embed__side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.shl-embed__more { margin-top: 12px; }

@media (max-width: 560px) {
	.shl-embed__row { flex-wrap: wrap; }
	.shl-embed__side { flex-direction: row; width: 100%; justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   Submit form
   -------------------------------------------------------------------------- */

.shl-submit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.shl-submit__foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.shl-submit__compat { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.shl-submit__compat-row { display: flex; align-items: center; gap: 8px; }
.shl-submit__compat-name { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; min-width: 130px; }
.shl-submit__compat select { max-width: 170px; }

/* --------------------------------------------------------------------------
   Modal & toast
   -------------------------------------------------------------------------- */

.shl-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.shl-modal__backdrop { position: absolute; inset: 0; background: rgba(5, 10, 25, 0.55); backdrop-filter: blur(3px); }

.shl-modal__panel {
	position: relative;
	width: min(760px, 100%);
	max-height: min(85vh, 900px);
	overflow-y: auto;
	background: var(--shl-bg);
	color: var(--shl-text);
	border: 1px solid var(--shl-border);
	border-radius: var(--shl-radius);
	box-shadow: var(--shl-shadow-lg);
	padding: 22px;
	animation: shl-pop 0.2s var(--shl-ease);
}

@keyframes shl-pop {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.shl * { animation: none !important; transition: none !important; }
}

.shl-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	padding: 7px;
	border: 1px solid var(--shl-border);
	border-radius: 9px;
	background: var(--shl-surface);
	color: var(--shl-text-2);
	cursor: pointer;
}
.shl-modal__close:hover { color: var(--shl-text); background: var(--shl-surface-2); }

.shl-modal__loading { display: flex; align-items: center; gap: 10px; color: var(--shl-text-3); padding: 30px 0; justify-content: center; }

.shl-modal__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; padding-right: 30px; }
.shl-modal__thumb { flex: none; width: 92px; height: 92px; border-radius: 12px; background: var(--shl-surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shl-modal__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.shl-modal__title { margin: 0 0 4px; font-size: 1.25rem; font-weight: 780; letter-spacing: -0.01em; }
.shl-modal__title a { color: inherit; text-decoration: none; }
.shl-modal__sub { font-size: 0.82rem; color: var(--shl-text-3); }
.shl-modal__section { margin-top: 16px; }
.shl-modal__section h4 { margin: 0 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--shl-text-3); }
.shl-modal__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.shl-spinner {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid var(--shl-border-strong);
	border-top-color: var(--shl-primary);
	animation: shl-spin 0.7s linear infinite;
	display: inline-block;
}

@keyframes shl-spin { to { transform: rotate(360deg); } }

.shl-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 100000;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--shl-text);
	color: var(--shl-bg);
	font-size: 0.85rem;
	font-weight: 600;
	box-shadow: var(--shl-shadow-lg);
	animation: shl-pop 0.2s var(--shl-ease);
}

.shl-loading { opacity: 0.55; pointer-events: none; transition: opacity 0.15s; }

/* An extra shortcode from the settings (a deals feed for instance). It is
   foreign markup, so it gets its own painted surface instead of inheriting
   the plugin colours. */
.shl-promo {
	display: block;
	margin: 22px 0 0;
	padding: 16px;
	border: 1px solid var(--shl-border);
	border-radius: var(--shl-radius);
	background: var(--shl-surface);
	color: var(--shl-text);
}
.shl-promo__title {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--shl-text);
}

/* ==========================================================================
   Home Assistant add-ons
   ========================================================================== */

.shl-addon__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }

.shl-pill--green { background: var(--shl-green-soft); color: var(--shl-green); }
.shl-pill--amber { background: var(--shl-amber-soft); color: var(--shl-amber); }
.shl-pill--red { background: var(--shl-red-soft); color: var(--shl-red); }
.shl-pill--blue { background: var(--shl-blue-soft); color: var(--shl-blue); }
.shl-pill--grey { background: var(--shl-grey-soft); color: var(--shl-grey); }

.shl-addon { display: flex; flex-direction: column; gap: 22px; }
.shl-addon__head { display: flex; flex-direction: column; gap: 10px; }
.shl-addon__title { margin: 0; font-size: 1.9rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--shl-text); }
.shl-addon__lead { margin: 0; font-size: 1rem; color: var(--shl-text-2); max-width: 68ch; }

.shl-steps {
	margin: 0;
	padding-left: 1.3em;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--shl-text-2);
}
.shl-steps li { padding-left: 4px; }
.shl-steps li::marker { color: var(--shl-primary); font-weight: 700; }

.shl-list {
	margin: 0;
	padding-left: 1.2em;
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--shl-text-2);
}

.shl-card--addon .shl-card__body { display: flex; flex-direction: column; gap: 8px; }
.shl-table tr.is-current { background: var(--shl-primary-soft); }
.shl-table tr.is-current small { font-weight: 400; color: var(--shl-text-3); }

/* The better packaged version of the same software, on the page of the other. */
.shl-recommend {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--shl-border);
	border-left: 3px solid var(--shl-primary);
	border-radius: var(--shl-radius);
	background: var(--shl-primary-soft);
	color: var(--shl-text);
}
.shl-recommend__lead { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 0.95rem; }
.shl-recommend__lead .shl-icon { flex: none; margin-top: 3px; color: var(--shl-primary); }
.shl-recommend__lead a { color: inherit; }
.shl-recommend__lead code { font-family: var(--shl-mono); font-size: 0.8rem; color: var(--shl-text-2); }
.shl-recommend__reasons {
	margin: 10px 0 12px;
	padding-left: 1.2em;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.86rem;
	color: var(--shl-text-2);
}
.shl-recommend p:last-child { margin-bottom: 0; }

.shl-card__hint { margin: 0; font-size: 0.8rem; color: var(--shl-primary); }
.shl-card__hint a { color: inherit; }

/* Add to my Home Assistant, and the plain URL for everyone else. */
.shl-myha { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.shl-myha__row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

.shl-copyfield { display: flex; flex-direction: column; gap: 6px; }
.shl-copyfield label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--shl-text-3);
}
.shl-copyfield__row { display: flex; gap: 8px; flex-wrap: wrap; }
.shl-copyfield input {
	flex: 1 1 260px;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--shl-border);
	border-radius: var(--shl-radius-sm);
	background: var(--shl-surface-2);
	color: var(--shl-text-2);
	font-family: var(--shl-mono);
	font-size: 0.8rem;
}
.shl-copyfield input:focus { outline: 2px solid var(--shl-primary); outline-offset: 1px; }

/* Add-on page: a head with a surface, and the facts as a real table. */
.shl-addon__head {
	padding: 20px 22px;
	border: 1px solid var(--shl-border);
	border-radius: var(--shl-radius);
	background: var(--shl-surface);
	box-shadow: var(--shl-shadow-sm);
}
.shl-addon__headline { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.shl-addon__repo {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 0.8rem;
	color: var(--shl-text-3);
}
.shl-addon__repo a { color: var(--shl-text-2); text-decoration: none; }
.shl-addon__repo a:hover { color: var(--shl-primary); }
.shl-addon__version code { font-family: var(--shl-mono); font-size: 0.74rem; color: var(--shl-text-3); }

.shl-addon__table table { width: 100%; }
.shl-addon__table th[scope="row"] {
	width: 34%;
	white-space: nowrap;
	font-weight: 600;
	color: var(--shl-text-2);
}
.shl-muted { color: var(--shl-text-3); }

/* The rating as eight steps – a number alone says little. */
.shl-meter { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: 8px; }
.shl-meter__step {
	width: 9px;
	height: 14px;
	border-radius: 2px;
	background: var(--shl-surface-2);
	border: 1px solid var(--shl-border);
}
.shl-meter__step--green { background: var(--shl-green); border-color: var(--shl-green); }
.shl-meter__step--amber { background: var(--shl-amber); border-color: var(--shl-amber); }
.shl-meter__step--red { background: var(--shl-red); border-color: var(--shl-red); }

/* How the rating came about. */
.shl-table--rating th[scope="row"] { font-weight: 500; color: var(--shl-text-2); }
.shl-rating__delta {
	width: 90px;
	text-align: right;
	font-family: var(--shl-mono);
	font-size: 0.85rem;
	color: var(--shl-text-3);
}
.shl-rating__delta.is-plus { color: var(--shl-green); }
.shl-rating__delta.is-minus { color: var(--shl-red); }
.shl-table--rating tr.is-current th { font-weight: 700; color: var(--shl-text); }

/* The facts of an add-on: stacked rows, framed as one box. */
.shl-addon__box {
	padding: 6px 18px;
	border: 1px solid var(--shl-border);
	border-radius: var(--shl-radius);
	background: var(--shl-surface);
}
.shl-facts--addon { display: block; }
.shl-facts--addon .shl-facts__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	padding: 11px 0;
	border-bottom: 1px solid var(--shl-border);
}
.shl-facts--addon .shl-facts__row:last-child { border-bottom: 0; }
.shl-facts--addon dt {
	flex: 0 0 190px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--shl-text-3);
}
.shl-facts--addon dd {
	flex: 1 1 240px;
	margin: 0;
	color: var(--shl-text);
	font-size: 0.92rem;
}
.shl-facts--addon dd a { color: var(--shl-text); }
.shl-facts--addon dd code { font-family: var(--shl-mono); font-size: 0.82rem; }

@media (max-width: 560px) {
	.shl-facts--addon dt { flex-basis: 100%; }
}

/* Add-on cards: three per row on a desktop, with icon and the dates that
   decide whether an add-on is worth installing. */
.shl-grid--addons {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 14px;
}
@media (min-width: 1100px) {
	.shl-grid--addons { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
	.shl-grid--addons { grid-template-columns: 1fr; }
}

.shl-card--addon { display: flex; }
.shl-card--addon .shl-card__link {
	display: block;
	width: 100%;
	text-decoration: none;
	color: inherit;
}
.shl-card--addon .shl-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 16px;
}

.shl-addon-card__head { display: flex; align-items: center; gap: 12px; }
.shl-addon-card__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 11px;
	border: 1px solid var(--shl-border);
	background: var(--shl-surface-2);
	color: var(--shl-text-3);
	overflow: hidden;
}
.shl-addon-card__icon img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.shl-addon-card__icon--large { width: 64px; height: 64px; border-radius: 14px; }
.shl-addon-card__icon--large img { padding: 8px; }
/* Brand logos of the integrations are drawn for a light ground. */
.shl--is-dark.shl-hai-archive .shl-addon-card__icon,
.shl--is-dark.shl-integration .shl-addon-card__icon { background: #f4f5f7; }
/* Tabs between the sections of the hub */
.shl-hub-nav { background: transparent; }
.shl-hub-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
	padding: 5px;
	border: 1px solid var(--shl-border);
	border-radius: 14px;
	background: var(--shl-surface-2);
}
.shl-hub-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 10px;
	color: var(--shl-text-2);
	font-weight: 600;
	font-size: 0.93rem;
	text-decoration: none;
}
.shl-hub-tab:hover { color: var(--shl-text); background: var(--shl-surface); }
.shl-hub-tab.is-active { color: var(--shl-text); background: var(--shl-surface); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
@media (max-width: 560px) {
	.shl-hub-tabs { flex-wrap: nowrap; overflow-x: auto; }
	.shl-hub-tab { flex: none; }
}

/* Repository overview */
.shl-repos { display: grid; gap: 16px; }
.shl-repo {
	padding: 16px 18px;
	border: 1px solid var(--shl-border);
	border-radius: 16px;
	background: var(--shl-surface);
}
.shl-repo__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.shl-repo__name { margin: 0; font-size: 1.15rem; color: var(--shl-text); }
.shl-repo__source { display: inline-flex; align-items: center; gap: 5px; color: var(--shl-text-3); text-decoration: none; font-size: 0.85rem; }
.shl-repo__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.shl-repo__more { margin-top: 10px; }
.shl-repo__more > summary { cursor: pointer; font-weight: 600; color: var(--shl-text-2); padding: 6px 0; }
.shl-repo__more[open] > summary { margin-bottom: 10px; }
.shl-repo__install { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.shl-repo__install .shl-copyfield__row { flex: 1 1 280px; display: flex; gap: 6px; }
.shl-repo__install input[type="text"] { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--shl-border); border-radius: 9px; background: var(--shl-surface-2); color: var(--shl-text); font-family: var(--shl-mono); font-size: 0.85rem; }

/* Known issues and fixes */
.shl-issues__title { margin: 18px 0 8px; font-size: 1rem; color: var(--shl-text); }
.shl-issues__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shl-issue {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 10px;
	align-items: start;
	padding: 10px 12px;
	border: 1px solid var(--shl-border);
	border-radius: 12px;
	background: var(--shl-surface);
}
.shl-issue .shl-pill { grid-row: span 2; align-self: start; white-space: nowrap; }
.shl-issue__text { color: var(--shl-text); }
.shl-issue__meta { font-size: 0.85rem; color: var(--shl-text-3); }
.shl-issue__meta a { color: inherit; }
@media (max-width: 560px) {
	.shl-issue { grid-template-columns: 1fr; }
	.shl-issue .shl-pill { grid-row: auto; justify-self: start; }
}

.shl-uses { margin-top: 14px; }
.shl-uses__title { margin: 0 0 6px; font-size: 0.95rem; font-weight: 600; color: var(--shl-text-2, var(--shl-text)); }
.shl-uses__list { margin: 0; padding-left: 1.2em; display: grid; gap: 3px; color: var(--shl-text); }
.shl-recommend--warning { border-color: #d9a441; background: rgba(217, 164, 65, 0.1); }
.shl-addon-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shl-addon-links__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--shl-border);
	border-radius: 12px;
	background: var(--shl-surface);
	color: var(--shl-text);
	text-decoration: none;
}
.shl-addon-links__link:hover { border-color: var(--shl-accent, var(--shl-border)); }
.shl-addon-links__facts { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@media (max-width: 560px) {
	.shl-addon-links__link { flex-wrap: wrap; }
	.shl-addon-links__facts { margin-left: 56px; justify-content: flex-start; }
}
.shl-hai-archive input[type="search"] { min-width: 220px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--shl-border); background: var(--shl-surface); color: var(--shl-text); }
.shl-addon-card__title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shl-addon-card__title .shl-card__title { font-size: 0.98rem; }
.shl-addon-card__title .shl-card__meta { font-size: 0.72rem; color: var(--shl-text-3); }

.shl-addon-card__meta { display: flex; flex-direction: column; gap: 4px; margin: auto 0 0; }
.shl-addon-card__meta > div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.76rem; }
.shl-addon-card__meta dt { color: var(--shl-text-3); }
.shl-addon-card__meta dd { margin: 0; color: var(--shl-text-2); text-align: right; }
.shl-addon-card__meta code { font-family: var(--shl-mono); font-size: 0.72rem; }

/* Filter rows above the list. */
.shl-toolbar__row--filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 26px;
	padding-top: 10px;
	border-top: 1px solid var(--shl-border);
}
.shl-filter { display: flex; flex-direction: column; gap: 6px; }
.shl-filter__label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--shl-text-3);
}

/* Devices named by a known issue */
.shl-issue .shl-pill { grid-row: 1 / span 3; }
.shl-issue__text, .shl-issue__meta, .shl-issue__products { grid-column: 2; }
.shl-issue__products { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--shl-text-3); }
.shl-issue__products .shl-chip { padding: 2px 9px; font-size: 0.8rem; }
@media (max-width: 560px) {
	.shl-issue__text, .shl-issue__meta, .shl-issue__products { grid-column: 1; }
}

/* Product check */
.shl-toolbar__actions--wide { flex: 1 1 100%; margin-left: 0; }
.shl-toolbar__actions--wide input[type="search"] { flex: 1 1 260px; min-width: 0; }
.shl-products__count { margin: 0 0 10px; }
.shl-product-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.shl-product-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
	padding: 10px 14px;
	border: 1px solid var(--shl-border);
	border-radius: 12px;
	background: var(--shl-surface);
}
.shl-product-row:hover { border-color: var(--shl-primary, var(--shl-border)); }
.shl-product-row__link { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 280px; color: var(--shl-text); text-decoration: none; }
.shl-product-row__name { font-size: 0.98rem; }
.shl-product-row__desc { font-size: 0.85rem; color: var(--shl-text-3); }
.shl-product-row__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.shl-quirk-table td { vertical-align: top; }
.shl-quirk-table td:first-child { min-width: 180px; }
.shl-howto { margin: 8px 0 10px; padding-left: 1.3em; display: grid; gap: 6px; color: var(--shl-text); }
.shl-code {
	margin: 6px 0 0;
	padding: 10px 12px;
	overflow-x: auto;
	border-radius: 10px;
	background: var(--shl-surface-2);
	font-family: var(--shl-mono);
	font-size: 0.82rem;
	line-height: 1.5;
}

/* All devices: filters, rows, hints */
.shl-device-filter__selects { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.shl-select { display: flex; flex-direction: column; gap: 3px; font-size: 0.78rem; color: var(--shl-text-3); }
.shl-select select { width: 100%; min-height: 36px; padding: 6px 8px; border: 1px solid var(--shl-border); border-radius: 10px; background: var(--shl-surface); color: var(--shl-text); font-size: 0.88rem; }
.shl-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--shl-text-2, var(--shl-text)); margin-right: 14px; }
.shl-product-row__image { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; flex: 0 0 56px; }
.shl-product-row--reviewed { border-color: var(--shl-primary, var(--shl-border)); }
.shl-product__head { display: flex; gap: 16px; align-items: center; }
.shl-product__image { width: 120px; height: 120px; object-fit: contain; border-radius: 14px; background: #fff; flex: 0 0 120px; }
.shl-product__review { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--shl-border); border-radius: 12px; background: var(--shl-surface-2); }
.shl-product-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0; padding: 12px 14px; border: 1px solid var(--shl-border); border-radius: 12px; background: var(--shl-surface); }
.shl-product-hint__text { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.9rem; }
.shl-quirk-notice { margin: 12px 0 18px; }
@media (max-width: 560px) {
	.shl-product__head { flex-direction: column; align-items: flex-start; }
}

/* Small screens: results first */
.shl-filter-toggle { align-self: flex-start; }
.shl-filter-toggle__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--shl-primary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}
.is-folded { display: none !important; }
@media (max-width: 720px) {
	/* A sticky toolbar full of filters would cover the list it filters. */
	.shl-toolbar { position: static; padding: 10px; gap: 8px; }
	.shl-toolbar__row { gap: 8px; }
	.shl-toolbar__actions { margin-left: 0; width: 100%; }
	.shl-toolbar__actions--wide input[type="search"] { flex: 1 1 auto; }
	.shl-hero { padding: 1.1rem 1rem; margin-bottom: 0.9rem; }
	.shl-hero__title { font-size: 1.45rem; }
	.shl-hero__intro {
		font-size: 0.93rem;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.shl-hero__stats { gap: 1.1rem; margin-top: 0.9rem; }
	.shl-hero__stat strong { font-size: 1.2rem; }
	.shl-hub-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
	.shl-hub-tabs::-webkit-scrollbar { display: none; }
	.shl-hub-tab { flex: none; padding: 7px 11px; font-size: 0.88rem; }
	.shl-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; }
	.shl-tabs::-webkit-scrollbar { display: none; }
	.shl-tabs .shl-tab { flex: none; }
	.shl-filter { display: block; }
	.shl-filter__label { display: block; margin-bottom: 4px; }
	.shl-device-filter__selects { grid-template-columns: 1fr 1fr; gap: 8px; }
	.shl-product-row { padding: 10px 12px; }
	.shl-product-row__image { width: 44px; height: 44px; flex-basis: 44px; }
	/* The quirk table becomes a list of cards. */
	.shl-quirk-table thead { display: none; }
	.shl-quirk-table, .shl-quirk-table tbody, .shl-quirk-table tr, .shl-quirk-table td { display: block; width: auto; }
	.shl-quirk-table tr { padding: 10px 12px; border: 1px solid var(--shl-border); border-radius: 12px; margin-bottom: 8px; background: var(--shl-surface); }
	.shl-quirk-table td { padding: 3px 0; border: 0; min-width: 0 !important; }
	.shl-table-wrap { overflow-x: visible; }
}
@media (max-width: 340px) {
	.shl-device-filter__selects { grid-template-columns: 1fr; }
}a.shl-pill, a.shl-pill:hover { text-decoration: none; }
.shl-select { text-align: left; }
@media (max-width: 720px) {
	.shl-toolbar__actions--wide { flex-wrap: nowrap; }
	.shl-toolbar__actions--wide .shl-btn { flex: none; }
}
/* A notice with a heading, text and a link reads as one paragraph. */
.shl-quirk-notice .shl-recommend__lead { display: block; }
.shl-quirk-notice .shl-recommend__lead .shl-icon { display: inline-block; vertical-align: -3px; margin: 0 4px 0 0; color: #b7791f; }
.shl-quirk-notice .shl-recommend__lead strong { display: inline; }
.shl-quirk-notice .shl-recommend__lead strong::after { content: ""; display: block; margin-bottom: 4px; }
.shl-quirk-notice .shl-recommend__lead a { display: inline-block; margin-top: 4px; font-weight: 600; text-decoration: underline; }
@media (max-width: 720px) {
	.shl-recommend__lead { flex-wrap: wrap; }
	.shl-facts--addon dt { flex-basis: 100%; }
	.shl-facts--addon dd { flex-basis: 100%; text-align: left; }
	.shl-facts dd { text-align: left; }
	.shl-facts__row { flex-wrap: wrap; }
	.shl-product__review { flex-direction: column; align-items: stretch; }
	.shl-product-hint { flex-direction: column; align-items: stretch; }
}

/* Matter & Thread */
.shl-matter__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.shl-matter__needs { list-style: none; counter-reset: shl-need; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.shl-matter__needs li { counter-increment: shl-need; position: relative; padding: 14px 14px 14px 50px; border: 1px solid var(--shl-border); border-radius: 12px; background: var(--shl-surface-2); display: grid; gap: 6px; align-content: start; font-size: 0.9rem; }
.shl-matter__needs li::before { content: counter(shl-need); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--shl-primary); color: #fff; font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.shl-matter__needs strong a { color: inherit; text-decoration: underline; text-decoration-color: var(--shl-border-strong); }
.shl-matter__needs span { color: var(--shl-text-2); line-height: 1.5; }
.shl-matter__matrix tfoot th, .shl-matter__matrix tfoot td { border-top: 2px solid var(--shl-border); border-bottom: 0; }
.shl-matter__matrix a { color: var(--shl-primary); text-decoration: none; font-weight: 600; }
.shl-matter__matrix a:hover { text-decoration: underline; }
.shl-matter__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.shl-matter__pair > * { min-width: 0; }
.shl-matter__aside { margin: 12px 0 0; }
.shl-matter .shl-product-list { margin-bottom: 10px; }
.shl-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shl-bars__row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; font-size: 0.88rem; }
.shl-bars__label { font-weight: 600; color: inherit; text-decoration: none; white-space: nowrap; }
.shl-bars__label:hover { color: var(--shl-primary); }
.shl-bars__track { height: 10px; border-radius: 99px; background: var(--shl-surface-2); overflow: hidden; }
.shl-bars__fill { display: block; height: 100%; border-radius: inherit; background: var(--shl-primary); }
.shl-bars__value { font-variant-numeric: tabular-nums; color: var(--shl-text-2); min-width: 3ch; text-align: right; }
@media (max-width: 720px) {
	.shl-matter__needs li { padding: 12px 12px 12px 46px; }
	.shl-matter__pair { grid-template-columns: 1fr; }
	.shl-bars__row { grid-template-columns: 80px 1fr auto; }
	.shl-matter .shl-table-wrap { overflow-x: auto; }
	.shl-matter__matrix th, .shl-matter__matrix td { padding: 8px 6px; }
}

/* The hub pages use .shl-results as the container of their list, not as the
   count bar of the device directory: one column, the pagination below. */
.shl-addons > .shl-results { display: block; }
.shl-addons > .shl-results.shl-matter__body { display: grid; }

/* HACS */
.shl-hacs-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.shl-hacs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--shl-border); border-radius: 12px; background: var(--shl-surface); }
.shl-hacs-row__main { flex: 1 1 320px; min-width: 0; display: grid; gap: 4px; }
.shl-hacs-row__main p { margin: 0; }
.shl-hacs-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.shl-hacs-row__name { font-weight: 700; font-size: 0.98rem; color: var(--shl-text); text-decoration: none; overflow-wrap: anywhere; }
.shl-hacs-row__name:hover { color: var(--shl-primary); }
.shl-hacs-row__text { font-size: 0.9rem; color: var(--shl-text-2); line-height: 1.45; }
.shl-hacs-row__facts { font-size: 0.8rem; }
.shl-hacs-row__actions { display: flex; gap: 6px; flex: 0 0 auto; }
@media (max-width: 720px) {
	.shl-hacs-row { padding: 10px 12px; }
	.shl-hacs-row__actions { width: 100%; }
	.shl-hacs-row__actions .shl-btn { flex: 1 1 0; justify-content: center; text-align: center; }
	.shl-hacs .shl-tabs { flex-wrap: wrap; }
}

/* Blueprints */
.shl-blueprints__uses { margin: 2px 0 0; gap: 5px; }
.shl-blueprints__uses .shl-chip { padding: 2px 9px; font-size: 0.78rem; }

/* Quirk database and the recommended quirk */
.shl-quirk-cards { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 12px; }
.shl-quirk-card { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--shl-border); border-radius: 14px; background: var(--shl-surface); min-width: 0; }
.shl-quirk-card__device { display: grid; gap: 2px; }
.shl-quirk-card__name { font-weight: 700; font-size: 1rem; color: var(--shl-text); text-decoration: none; }
.shl-quirk-card__name:hover { color: var(--shl-primary); }
.shl-quirk-best { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--shl-surface-2); border-left: 4px solid var(--shl-border-strong); min-width: 0; }
.shl-quirk-best--release { border-left-color: #2f9e6e; }
.shl-quirk-best--pr { border-left-color: var(--shl-primary); }
.shl-quirk-best--custom { border-left-color: #d69e2e; }
.shl-quirk-best p { margin: 0; }
.shl-quirk-best__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shl-quirk-best__reason { font-size: 0.88rem; color: var(--shl-text-2); line-height: 1.45; }
.shl-quirk-best__adds { gap: 5px; align-items: center; }
.shl-quirk-best__adds .shl-chip { padding: 1px 8px; font-size: 0.76rem; }
.shl-quirk-best__source { font-size: 0.82rem; line-height: 1.6; overflow-wrap: anywhere; }
.shl-quirk-best__source code, .shl-quirk-best__list code { font-size: 0.76rem; }
.shl-quirk-best__others summary { cursor: pointer; font-size: 0.84rem; font-weight: 600; color: var(--shl-primary); }
.shl-quirk-best__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.8rem; }
.shl-quirk-best__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; overflow-wrap: anywhere; }
.shl-quirks .shl-quirk-best { margin-bottom: 12px; }

/* Boxes inside articles */
.shl-box { display: flex; gap: 14px; align-items: flex-start; margin: 20px 0; padding: 14px 16px; border: 1px solid var(--shl-border); border-left: 4px solid var(--shl-primary); border-radius: 14px; background: var(--shl-surface); }
.shl-box--hacs { border-left-color: #2f9e6e; }
.shl-box--blueprint { border-left-color: #8b5cf6; }
.shl-box--quirk { border-left-color: #d69e2e; }
.shl-box__image { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #fff; flex: 0 0 64px; }
.shl-box__body { flex: 1 1 auto; min-width: 0; display: grid; gap: 7px; }
.shl-box__body p { margin: 0; }
.shl-box__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shl-box__title { font-weight: 700; font-size: 1.02rem; color: var(--shl-text); text-decoration: none; overflow-wrap: anywhere; }
.shl-box__title:hover { color: var(--shl-primary); }
.shl-box__text { font-size: 0.92rem; color: var(--shl-text-2); line-height: 1.5; }
.shl-box__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.shl-box__note { font-size: 0.82rem; }
.shl-box__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
@media (max-width: 720px) {
	.shl-box { padding: 12px; gap: 10px; }
	.shl-box__image { width: 48px; height: 48px; flex-basis: 48px; }
	.shl-box__actions .shl-btn { flex: 1 1 auto; justify-content: center; text-align: center; }
}
