.hpt-tree-widget {
	--hpt-accent: #7a1712;
	--hpt-accent-strong: #57100c;
	--hpt-panel: #f7f1e7;
	--hpt-toolbar: #e8d9af;
	--hpt-highlight: #e2d3a4;
	--hpt-border: #d9cba6;
	--hpt-muted: #5c5c5c;
	--hpt-indent: 1.25rem;
	--hpt-radius: 3px;
	font-size: 1rem;
	line-height: 1.35;
	max-width: 100%;
}

.hpt-heading {
	font-size: 1.25em;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

.hpt-toolbar {
	align-items: center;
	background: var(--hpt-toolbar);
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: space-between;
	margin-bottom: 0.8rem;
	padding: 0.75rem;
}

.hpt-search-label {
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.hpt-search {
	background: #fff;
	border: 1px solid #777;
	border-radius: var(--hpt-radius);
	box-sizing: border-box;
	font: inherit;
	min-height: 2.35rem;
	min-width: min(100%, 18rem);
	padding: 0.4rem 0.6rem;
}

.hpt-search:focus,
.hpt-toggle:focus-visible,
.hpt-control:focus-visible,
.hpt-title:focus-visible,
.hpt-view:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

.hpt-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.hpt-control {
	background: #fff;
	border: 1px solid #777;
	border-radius: var(--hpt-radius);
	color: #222;
	cursor: pointer;
	font: inherit;
	font-size: 0.875em;
	padding: 0.35rem 0.65rem;
}

.hpt-control:hover {
	background: #f6f6f6;
}

.hpt-tree,
.hpt-children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpt-tree {
	background: var(--hpt-panel);
	border-top: 1px dotted var(--hpt-border);
	padding: 0.85rem 0.75rem;
}

.hpt-children {
	margin-left: var(--hpt-indent);
}

.hpt-is-ready .hpt-children[hidden] {
	display: none;
}

.hpt-node {
	margin: 0;
	padding: 0;
}

.hpt-row {
	align-items: baseline;
	display: flex;
	gap: 0.35rem;
	min-height: 1.55rem;
	padding: 0.08rem 0.2rem;
}

.hpt-row:hover,
.hpt-current > .hpt-row {
	background: var(--hpt-highlight);
}

.hpt-toggle,
.hpt-toggle-spacer {
	box-sizing: border-box;
	flex: 0 0 1.15rem;
	height: 1.15rem;
	margin-top: 0.1rem;
	width: 1.15rem;
}

.hpt-toggle {
	align-items: center;
	background: #fff;
	border: 1px solid #b8a89b;
	border-radius: 2px;
	color: var(--hpt-accent);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1;
	padding: 0;
}

.hpt-toggle:hover {
	border-color: var(--hpt-accent);
}

.hpt-toggle[aria-expanded="true"] .hpt-icon-plus,
.hpt-toggle[aria-expanded="false"] .hpt-icon-minus {
	display: none;
}

.hpt-title,
.hpt-view {
	color: var(--hpt-accent);
	text-decoration: none;
}

.hpt-title {
	min-width: 0;
}

.hpt-title:hover,
.hpt-view:hover {
	color: var(--hpt-accent-strong);
	text-decoration: underline;
}

.hpt-current > .hpt-row > .hpt-title {
	font-weight: 700;
}

.hpt-view {
	font-size: 0.94em;
	margin-left: auto;
	white-space: nowrap;
}

.hpt-child-count {
	background: rgba(255, 255, 255, 0.72);
	border-radius: 999px;
	color: var(--hpt-muted);
	font-size: 0.78em;
	line-height: 1.35;
	padding: 0 0.4em;
}

.hpt-excerpt {
	color: var(--hpt-muted);
	font-size: 0.9em;
	margin: 0.05rem 2rem 0.35rem 1.5rem;
}

.hpt-empty,
.hpt-no-results {
	background: var(--hpt-panel);
	margin: 0;
	padding: 0.9rem;
}

@media (max-width: 600px) {
	.hpt-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.hpt-search {
		width: 100%;
	}

	.hpt-view {
		font-size: 0.85em;
	}

	.hpt-tree {
		padding-left: 0.4rem;
		padding-right: 0.4rem;
	}

	.hpt-tree-widget {
		--hpt-indent: 0.85rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.hpt-row {
		transition: background-color 120ms ease-in-out;
	}
}
