.ego-public {
	box-sizing: border-box;
	color: #1f2933;
	font-size: 16px;
	line-height: 1.5;
}

.ego-lead-form,
.ego-event-form {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	max-width: 760px;
	width: 100%;
}

.ego-lead-form label,
.ego-lead-form span,
.ego-lead-form input,
.ego-lead-form select,
.ego-lead-form textarea,
.ego-event-form label,
.ego-event-form span,
.ego-event-form input,
.ego-event-form textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
}

.ego-lead-form span,
.ego-event-form span {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
}

.ego-lead-form input,
.ego-lead-form select,
.ego-lead-form textarea,
.ego-event-form input,
.ego-event-form textarea {
	border: 1px solid #8c8f94;
	border-radius: 6px;
	padding: 10px;
}

.ego-lead-form input:focus,
.ego-lead-form select:focus,
.ego-lead-form textarea:focus,
.ego-event-form input:focus,
.ego-event-form textarea:focus,
.ego-chatbot-form textarea:focus,
.ego-message-search input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.18);
	outline: none;
}

.ego-lead-form .ego-lead-form-full,
.ego-lead-form .ego-form-message,
.ego-lead-form button,
.ego-event-form h3,
.ego-event-form label,
.ego-event-form .ego-form-section,
.ego-event-form .ego-form-message,
.ego-event-form button {
	grid-column: 1 / -1;
}

.ego-event-form .ego-form-section {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin: 0;
	min-width: 0;
	padding: 14px;
}

.ego-event-form .ego-form-section legend {
	color: #1d2327;
	font-weight: 700;
	padding: 0 6px;
}

.ego-event-form .ego-form-section label {
	grid-column: 1 / -1;
}

.ego-lead-form button,
.ego-event-form button {
	background: #1d2327;
	border: 1px solid #1d2327;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	padding: 12px 16px;
}

.ego-lead-form button:hover,
.ego-event-form button:hover,
.ego-chatbot-form button:hover,
.ego-message-search button:hover {
	background: #2c3338;
	border-color: #2c3338;
}

.ego-form-message {
	border-left: 4px solid #72aee6;
	margin: 0;
	padding: 10px 12px;
}

.ego-form-message-success {
	background: #eef8f0;
	border-left-color: #00a32a;
}

.ego-form-message-error {
	background: #fcf0f1;
	border-left-color: #d63638;
}

.ego-client-portal {
	display: grid;
	gap: 18px;
	max-width: 1080px;
}

.ego-portal-header {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 16px;
}

.ego-portal-header h2 {
	margin: 0 0 6px;
}

.ego-portal-header p {
	margin: 0;
}

.ego-portal-header span {
	margin-left: 10px;
}

.ego-portal-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ego-portal-tabs a {
	border: 1px solid #8c8f94;
	border-radius: 6px;
	padding: 8px 10px;
	text-decoration: none;
}

.ego-portal-tabs a:focus,
.ego-portal-tabs a:hover,
.ego-form-link:focus,
.ego-form-link:hover,
.ego-file-list a:focus,
.ego-file-list a:hover,
.ego-media-card-body a:focus,
.ego-media-card-body a:hover {
	background: #f0f6fc;
	outline: 2px solid transparent;
}

.ego-portal-section {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 16px;
}

.ego-portal-section h3 {
	margin-top: 0;
}

.ego-progress {
	background: #f0f0f1;
	border-radius: 999px;
	height: 10px;
	margin: 12px 0 16px;
	overflow: hidden;
}

.ego-progress-bar {
	background: #00a32a;
	height: 100%;
	min-width: 2px;
	transition: width 160ms ease-in-out;
}

.ego-event-summary {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin: 0;
}

.ego-event-summary div {
	min-width: 0;
}

.ego-event-summary dt {
	font-size: 13px;
	font-weight: 700;
}

.ego-event-summary dd {
	margin: 3px 0 0;
}

.ego-timeline-builder {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ego-timeline-builder li {
	align-items: start;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(82px, max-content) 1fr;
	padding: 10px 12px;
}

.ego-timeline-builder time {
	color: #1d2327;
	font-weight: 700;
	white-space: nowrap;
}

.ego-timeline-builder span {
	min-width: 0;
}

.ego-timeline-notes {
	margin-top: 14px;
}

.ego-timeline-notes h4 {
	margin: 0 0 8px;
}

.ego-timeline-notes ul {
	margin-bottom: 0;
}

.ego-checklist {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ego-checklist li {
	align-items: center;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	padding: 10px 12px;
}

.ego-checklist li span {
	flex: 1 1 auto;
}

.ego-checklist .is-complete {
	background: #eef8f0;
}

.ego-checklist .is-pending {
	background: #fff;
}

.ego-form-link {
	white-space: nowrap;
}

.ego-file-list {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.ego-file-list li {
	align-items: center;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	display: grid;
	gap: 12px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	padding: 10px 12px;
}

.ego-file-list small {
	color: #607080;
	display: block;
	margin-top: 2px;
}

.ego-file-request-list {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.ego-file-request-list li {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	display: grid;
	gap: 12px;
	padding: 12px;
}

.ego-file-request-list strong,
.ego-file-request-list span,
.ego-file-request-list small {
	display: block;
}

.ego-file-request-list span {
	color: #2c6b4f;
	font-weight: 700;
	margin-top: 4px;
}

.ego-file-request-list p {
	margin-bottom: 0;
}

.ego-file-request-form {
	margin-top: 0;
}

.ego-attachment-preview {
	align-items: center;
	background: #f6f7f7;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	display: inline-flex;
	font-size: 11px;
	font-weight: 700;
	justify-content: center;
	min-height: 34px;
	min-width: 46px;
	padding: 4px 6px;
	text-transform: uppercase;
}

.ego-attachment-preview.is-image {
	background: #eef8f0;
}

.ego-attachment-preview.is-video {
	background: #f0f6fc;
}

.ego-attachment-preview.is-document {
	background: #fcf9e8;
}

.ego-media-gallery {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	margin-top: 12px;
}

.ego-media-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.ego-media-summary span {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	padding: 6px 10px;
}

.ego-media-card {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	display: grid;
	overflow: hidden;
}

.ego-media-card.is-featured {
	grid-column: 1 / -1;
}

.ego-media-card-preview {
	align-items: center;
	aspect-ratio: 4 / 3;
	background: #f6f7f7;
	display: flex;
	justify-content: center;
}

.ego-media-card.is-featured .ego-media-card-preview {
	aspect-ratio: 16 / 7;
}

.ego-media-card-preview span {
	border: 1px solid #8c8f94;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 9px;
}

.ego-media-card-body {
	display: grid;
	gap: 8px;
	padding: 12px;
}

.ego-media-card-body strong,
.ego-media-card-body small,
.ego-media-card-body em,
.ego-media-card-body a {
	overflow-wrap: anywhere;
}

.ego-media-card-body em {
	color: #007017;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	text-transform: uppercase;
}

.ego-media-card-body small {
	color: #607080;
	display: grid;
	gap: 2px;
}

.ego-message-thread {
	display: grid;
	gap: 12px;
	margin: 0 0 18px;
}

.ego-message-search {
	align-items: end;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.ego-message-search input {
	border: 1px solid #8c8f94;
	border-radius: 6px;
	min-width: min(100%, 260px);
	padding: 10px;
}

.ego-message-search button {
	background: #1d2327;
	border: 1px solid #1d2327;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	padding: 10px 14px;
}

.ego-message-bubble {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 12px;
}

.ego-message-bubble.is-client {
	background: #f6f8fb;
}

.ego-message-bubble strong {
	display: inline-block;
	margin-right: 8px;
}

.ego-message-bubble span {
	color: #607080;
	font-size: 13px;
}

.ego-message-bubble p {
	margin-bottom: 0;
}

.ego-chatbot {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	display: grid;
	gap: 12px;
	max-width: 760px;
	padding: 14px;
}

.ego-chatbot-log {
	display: grid;
	gap: 8px;
	max-height: 360px;
	overflow: auto;
}

.ego-chatbot-bubble {
	border-radius: 6px;
	margin: 0;
	max-width: 82%;
	padding: 10px 12px;
	white-space: pre-wrap;
}

.ego-chatbot-bubble.is-assistant {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	justify-self: start;
}

.ego-chatbot-bubble.is-user {
	background: #1d2327;
	color: #fff;
	justify-self: end;
}

.ego-chatbot-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ego-chatbot-actions a {
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	color: #1d2327;
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	padding: 8px 10px;
	text-decoration: none;
}

.ego-chatbot-actions a:focus,
.ego-chatbot-actions a:hover {
	background: #f0f6fc;
	border-color: #2271b1;
	color: #0a4b78;
	outline: 2px solid transparent;
}

.ego-chatbot-tour-cta {
	margin: 0;
}

.ego-chatbot-tour-cta .ego-button {
	background: #1d2327;
	border: 1px solid #1d2327;
	border-radius: 6px;
	color: #fff;
	display: inline-block;
	padding: 10px 14px;
	text-decoration: none;
}

.ego-chatbot-tour-cta .ego-button:hover {
	background: #2c3338;
	border-color: #2c3338;
	color: #fff;
}

.ego-chatbot-form {
	display: grid;
	gap: 10px;
}

.ego-chatbot-form span,
.ego-chatbot-form textarea {
	display: block;
	width: 100%;
}

.ego-chatbot-form span {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
}

.ego-chatbot-form textarea {
	border: 1px solid #8c8f94;
	border-radius: 6px;
	box-sizing: border-box;
	padding: 10px;
}

.ego-chatbot-form button {
	background: #1d2327;
	border: 1px solid #1d2327;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	justify-self: start;
	padding: 10px 14px;
}

@media (max-width: 640px) {
	.ego-portal-header span {
		display: block;
		margin-left: 0;
		margin-top: 4px;
	}

	.ego-checklist li,
	.ego-file-list li {
		align-items: flex-start;
		grid-template-columns: 1fr;
	}

	.ego-form-link {
		white-space: normal;
	}

	.ego-chatbot-bubble {
		max-width: 100%;
	}
}
