.HPAChatBox {
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 9999;
}
:root {
	--hexside: 70px;
	--hexshape: 50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%;
	--index-width: 1000px;
}
.HPAChat-closed .open-button {
	width: var(--hexside);
	height: var(--hexside);
	cursor: pointer;
}

/* Match the Atlas AI hover effect on the home page. */
.HPAChat-closed .open-button {
	-webkit-filter: brightness(1) drop-shadow(0 0 0 rgba(35, 50, 60, 0));
	filter: brightness(1) drop-shadow(0 0 0 rgba(35, 50, 60, 0));
	transition: -webkit-filter 180ms ease;
	transition: filter 180ms ease;
}
.HPAChat-closed:hover .open-button,
.HPAChat-closed .open-button:focus {
	-webkit-filter: brightness(1.08) drop-shadow(0 2px 3px rgba(35, 50, 60, 0.2));
	filter: brightness(1.08) drop-shadow(0 2px 3px rgba(35, 50, 60, 0.2));
}
@media (prefers-reduced-motion: reduce) {
	.HPAChat-closed .open-button {
		transition: none;
	}
}

.HPAChatBox .close-button {
	width: 1rem;
	min-width: 1rem;
	position: absolute;
	top: 0.5em;
	left: 0.5em;
	z-index: 9999;
	height: 1.5rem;
	font-size: 16px;
	font-weight: 700;
	background-color: transparent;
	padding: 2px;
	border: none;
}

.HPAChat-opened {
	display: none;
	height: calc(100vh - 1rem);
	flex-direction: column;
	align-items: flex-end;
	border: solid 1px grey;
	position: relative;
	margin-right: 1rem;
	margin-bottom: 0.5rem;
	width: min(50rem, calc(100vh - 1rem));
	animation: disappear-down 5s ease forwards;
}
.HPAAgent {
	flex-grow: 2;
	width: 100%;
	height: 100%;
}
.HPAAgent .HPAG-container {
	height: 100%;
}
div.HPAChatIndexView {
	.HPAG-input-area {
		border-top: none;
		padding: 0 0 0 77px;
		background-color: #f0f0f0;
		gap: 2px;
	}
	.HPAG-input {
		width: 640px;
		box-shadow: 0 0 10px #9ecaed;
	}
	.HPAG-chat-area {
		margin-top: 0;
		background-color: #f0f0f0;
	}
	.HPAG-container {
		background-color: #f0f0f0;
	}
	.hexIcon {
		--hexside: 70px;
		cursor: auto;
	}
	.HPAG-send-btn {
		border-radius: 3px;
		padding: 5px 10px;
		margin: 2px;
		width: 84px;
		font-size: 12px;
	}
	width: 950px;
	padding: 10px 25px 10px 25px;
	background-color: #f0f0f0;
	.flex img {
		height: 70px;
	}
	 div.index_slogan {
		text-align: center;
		margin-top: 10px;
		margin-bottom: 10px;
	}
	> div.flex {
		display: flex;
		align-items: center;

	}

}
.HPAChat-header-item {
	position: absolute;
	top: 10px;
	right: 50px;
}


@property --mask-top {
	syntax: '<length>';
	inherits: false;
	initial-value: 0px;
}
.HPAG-messages-container {
	overflow-y: auto;
	mask-image: linear-gradient(
			to bottom,
			transparent 0,
			black var(--mask-top)
	);
	animation: fade-top linear both;
	animation-timeline: scroll(self);
	animation-range: 0 40px; /* fully faded after 40px of scroll */
}
@keyframes fade-top {
	to { --mask-top: 40px; }
}
