main {
	width: 100%;
}
main .tree-scroll {
	width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	padding-bottom: 24px;
}
main #treeDomRoot {
	width: max-content;
	min-width: 100%;
}
main .tree-node {
	width: max-content;
}
main .tree-card {
	display: flex;
	align-items: center;
	width: max-content;
	min-width: max-content;
	padding: 14px 20px 14px 14px;
	margin: 0 70px 0 32px;
	background: #fff;
	border: 1px solid rgba(184, 134, 11, 0.25);
	border-radius: 8px;
	box-shadow: 0 4px 18px rgba(184, 134, 11, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
	justify-content: space-between;
	transition: all 0.3s ease;
	flex-shrink: 0; 
}
main .tree-card:hover {
	border-color: #b8860b;
	box-shadow: 0 6px 20px rgba(123, 89, 0, 0.15);
}
.tree-tooltip {
	display: none;
	position: fixed;
	max-width: 80vw;
	max-height: 247px;
	padding: 8px 10px;
	font-family: sans-serif;
	font-stretch: condensed;
	font-weight: 100;
	font-size: 1rem;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #000;
	white-space: normal;
	overflow: auto;
	z-index: 10000;
}
.tree-tooltip.is-visible {
	display: block;
}
.tree-tooltip {
	border: 1px solid #b8860b;
	outline: 1px solid rgba(140, 109, 31, 0.3);
	outline-offset: -3px;
	border-radius: 2px;
	box-shadow: 
		0 10px 25px rgba(184, 134, 11, 0.15),
		0 4px 10px rgba(0, 0, 0, 0.05),
		inset 0 0 12px rgba(212, 175, 55, 0.08);
	scroll-behavior: smooth;
}
.tree-tooltip::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}
.tree-tooltip::-webkit-scrollbar-track {
	background: #fcf9f2;
	border-left: 1px solid rgba(184, 134, 11, 0.15);
}
.tree-tooltip::-webkit-scrollbar-thumb {
	background: #c5a059;
	border-radius: 2px;
	box-shadow: inset 0 0 4px rgba(140, 109, 31, 0.4);
}
.tree-tooltip::-webkit-scrollbar-thumb:hover {
	background: #8c6d1f;
}
/* Firefox */
.tree-tooltip {
	scrollbar-width: thin;
	scrollbar-color: #c5a059 #fcf9f2;
}

main .tree-toggle {
	display: flex;
	width: 26px;
	height: 26px;
	margin-right: 14px;
	margin-left: 4px;
	align-items: center;
	justify-content: center;
	color: #7B5900;
	font-family: Arial;
	font-size: 20px;
	font-weight: 100;
	border-radius: 4px;
	background-color: #F4EFE6;
	border: 1px solid rgba(184, 134, 11, 0.4);
	transition: all 0.2s ease;
	cursor: pointer;
}
main .tree-toggle:hover {
	background-color: #B8860B;
	color: #FFFFFF;
}
main .tree-leaf-icon {
	display: block;
	width: 12px;
	height: 12px;
}
main .tree-toggle-empty {
	cursor: default;
}
main .tree-toggle-empty:hover {
	background-color: transparent;
	cursor: default;
}
main .tree-content {
	width: max-content;
	min-width: max-content;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
main .tree-notation {
	white-space: nowrap;
	width: max-content;
	min-width: max-content;
	line-height: 1.4;
	font-size: 1rem;
	font-family: 'FiraCode Medium';
}
main .tree-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
	line-height: 1.4;
}
main .tree-level {
	flex: 0 0 auto;
	font-family: 'JetBrains Mono', monospace;
	font-size: 9px;
	color: #7B5900;
	font-weight: 600;
	background: #F9F6F0;
	border: 1px solid rgba(184, 134, 11, 0.1);
	padding: 2px 6px;
	border-radius: 4px;
}
main .tree-snps {
	display: block;
	width: fit-content;
	max-width: 420px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #7B5900;
	font-family: 'FiraCode Regular';
	font-weight: 100;
	font-size: 0.9rem;
}
main .tree-snps strong {
	font-family: 'FiraCode Medium';
	font-weight: 400;
	font-size: 1rem;
}
main .tree-children {
	margin-left: 48px;
	border-left: 2px solid rgba(184, 134, 11, 0.3);
	margin-top: 0.5rem;
}
main .tree-children > .tree-node + .tree-node {
	padding-top: 0.5rem;
}
main .tree-node.is-collapsed > .tree-children {
	display: none;
}
main .tree-node.is-expanded > .tree-children {
	display: block;
}
main #treeDomRoot > .tree-node {
	padding-top: 4px;
}
main .tree-node-search-selected > .tree-card {
	border: 2px solid red;
}
main .tree-horizontal-scroll {
	position: sticky;
	bottom: 0;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	z-index: 100;
}
main .tree-horizontal-scroll-content {
	height: 1px;
}
main .tree-scroll {
	scrollbar-width: none;
}
main .tree-scroll::-webkit-scrollbar {
	display: none;
}
main .tree-horizontal-scroll::-webkit-scrollbar {
	height: 8px;
}
main .tree-horizontal-scroll::-webkit-scrollbar-track {
	background: #eee;
}
main .tree-horizontal-scroll::-webkit-scrollbar-thumb {
	background: #888888;
	border-radius: 4px;
}
main .tree-horizontal-scroll::-webkit-scrollbar-thumb:hover {
	background: #555555;
}
