.activity-thread,
.activity-inbox-page,
.activity-thread-page {
	color: #172033;
}

.activity-thread {
	background: #fff;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	display: flex;
	flex-direction: column;
	height: 430px;
	padding: 18px;
}

.sales-overview-side > .activity-thread {
	height: 100%;
	min-height: 0;
}

.sales-edit-main .activity-thread {
	padding: 12px;
}

.activity-thread-header,
.activity-composer-actions,
.activity-comment header,
.activity-inbox-item footer {
	align-items: center;
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.activity-thread-header h2,
.activity-inbox-empty h2 {
	font-size: 1rem;
	font-weight: 800;
	margin: 0;
}

.activity-thread-header span,
.activity-composer-actions span,
.activity-comment header span,
.activity-inbox-item span {
	color: #64748b;
	font-size: 0.82rem;
}

.activity-inbox-link {
	color: #1d4ed8;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

.activity-composer {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.activity-mention-field {
	position: relative;
}

.activity-rich-editor {
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font: inherit;
	min-height: 88px;
	padding: 10px 12px;
	white-space: pre-wrap;
	width: 100%;
}

.activity-rich-editor:empty::before {
	color: #94a3b8;
	content: attr(data-placeholder);
	pointer-events: none;
}

.activity-rich-editor:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
	outline: none;
}

.activity-rich-editor.invalid {
	border-color: #dc2626;
}

.activity-mentioned-user {
	color: #1d4ed8;
	font-weight: 800;
}

.activity-mention-menu {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
	display: grid;
	left: 10px;
	max-height: 240px;
	overflow: auto;
	padding: 6px;
	position: absolute;
	right: 10px;
	top: 40px;
	z-index: 30;
}

.activity-mention-menu button {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: #172033;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	padding: 8px 10px;
	text-align: left;
}

.activity-mention-menu button:hover,
.activity-mention-menu button.active {
	background: #eff6ff;
}

.activity-mention-menu button.broadcast {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.activity-mention-menu button.broadcast.active,
.activity-mention-menu button.broadcast:hover {
	background: #dbeafe;
}

.activity-mention-menu strong {
	color: #1d4ed8;
	font-size: 0.88rem;
}

.activity-mention-menu span {
	color: #64748b;
	font-size: 0.78rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.activity-empty,
.activity-inbox-empty {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	padding: 18px;
}

.activity-scroll {
	flex: 1;
	margin-top: 14px;
	min-height: 0;
	overflow-y: auto;
	padding-right: 4px;
}

.activity-scroll .activity-empty {
	margin: 0;
}

.activity-list,
.activity-inbox-list {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.activity-comment,
.activity-inbox-item,
.activity-progress-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	display: flex;
	gap: 12px;
	padding: 12px;
}

.activity-comment.is-resolved {
	opacity: 0.72;
}

.activity-avatar {
	align-items: center;
	background: #0f766e;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	flex: 0 0 34px;
	font-size: 0.8rem;
	font-weight: 800;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.activity-progress-dot {
	align-items: center;
	background: #dbeafe;
	border-radius: 999px;
	display: inline-flex;
	flex: 0 0 34px;
	height: 34px;
	justify-content: center;
	position: relative;
	width: 34px;
}

.activity-progress-dot::after {
	background: #2563eb;
	border-radius: 999px;
	content: "";
	height: 12px;
	width: 12px;
}

.activity-comment-body {
	flex: 1;
	min-width: 0;
}

.activity-comment p,
.activity-progress-item p,
.activity-inbox-item p {
	margin: 8px 0;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}

.activity-mentions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.activity-mentions span,
.activity-resolved-badge,
.activity-system-badge,
.app-activity-count {
	background: #dbeafe;
	border-radius: 999px;
	color: #1d4ed8;
	font-size: 0.72rem;
	font-weight: 800;
	padding: 3px 8px;
}

.activity-system-badge {
	background: #e2e8f0;
	color: #475569;
}

.activity-progress-details {
	color: #64748b;
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.activity-resolve-form button {
	background: transparent;
	border: 0;
	color: #1d4ed8;
	font-weight: 800;
	padding: 0;
}

.activity-inbox-page,
.activity-thread-page {
	display: grid;
	gap: 18px;
}

.activity-inbox-list {
	margin-top: 0;
}

.activity-inbox-item {
	display: grid;
}

.activity-inbox-item.is-unread {
	border-color: #2563eb;
	box-shadow: inset 4px 0 0 #2563eb;
}

.activity-inbox-item footer > div {
	display: flex;
	gap: 8px;
}

.app-activity-link {
	margin: auto 12px 12px;
	position: relative;
}

.app-activity-count {
	margin-left: auto;
}

@media (max-width: 760px) {
	.activity-thread-header,
	.activity-composer-actions,
	.activity-inbox-item footer {
		align-items: stretch;
		flex-direction: column;
	}

	.activity-comment {
		padding: 10px;
	}
}
