.ims-an {
	--ims-an-text: #20252b;
	--ims-an-muted: #72767b;
	--ims-an-line: #e5e5e5;
	width: 100%;
	min-width: 0;
	color: var(--ims-an-text);
}

.ims-an,
.ims-an *,
.ims-an *::before,
.ims-an *::after {
	box-sizing: border-box;
}

.ims-an svg {
	display: block;
	fill: currentColor;
}

.ims-an-editor-notice {
	width: 100%;
	padding: 16px;
	color: #3c434a;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	background: #f6f7f7;
	border: 1px dashed #c3c4c7;
}

.ims-an__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 0;
	padding: 0 16px;
	background: #fff;
	border-bottom: 1px solid var(--ims-an-line);
}

.ims-an__tabs {
	display: flex;
	align-items: center;
	gap: 28px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.ims-an__tabs::-webkit-scrollbar {
	display: none;
}

.ims-an__tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 50px;
	flex: 0 0 auto;
	color: #555a60;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.ims-an__tab::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	content: "";
	background: transparent;
}

.ims-an__tab.is-active {
	color: var(--ims-an-text);
}

.ims-an__tab.is-active::after {
	background: var(--ims-an-text);
}

.ims-an__badge,
.ims-an-global-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 20px;
	padding: 0 6px;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	background: #d92532;
	border-radius: 999px;
}

.ims-an-global-badge {
	margin-left: auto;
}

.ims-an__mark-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	flex: 0 0 auto;
	color: #555a60;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: color 180ms ease;
}

.ims-an__mark-all:hover,
.ims-an__mark-all:focus-visible {
	color: #20252b;
}

.ims-an__mark-all-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.ims-an__list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ims-an-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	min-height: 112px;
	padding: 14px 16px;
	background: #fff;
	border-width: 0 0 1px;
	border-style: solid;
	border-color: var(--ims-an-line);
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease;
}

.ims-an-item.is-read {
	background: #fff;
}

.ims-an-item.is-unread {
	background: #f2f2f2;
}

.ims-an-item:hover {
	background: #f8f8f8;
}

.ims-an-item__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	flex: 0 0 80px;
	overflow: hidden;
	background: #d9d9d9;
}

.ims-an-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ims-an-item__image-placeholder {
	display: block;
	width: 34%;
	height: 34%;
	background: rgba(32, 37, 43, .12);
	border-radius: 50%;
}

.ims-an-item__main {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	align-self: center;
	color: inherit;
	text-decoration: none;
}

.ims-an-item__title {
	display: block;
	color: var(--ims-an-text);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

.ims-an-item.is-unread .ims-an-item__title {
	font-weight: 600;
}

.ims-an-item__excerpt {
	color: #666b70;
	font-size: 13px;
	line-height: 1.5;
}

.ims-an-item__date {
	color: #555a60;
	font-size: 12px;
	line-height: 1.4;
}

.ims-an-item__actions {
	position: relative;
	flex: 0 0 auto;
}

.ims-an-item__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: #20252b;
	font-size: 15px;
	cursor: pointer;
	border-radius: 50%;
	transition:
		color 180ms ease,
		background-color 180ms ease;
}

.ims-an-item__more:hover,
.ims-an-item__more.is-open {
	background: rgba(32, 37, 43, .06);
}

.ims-an-item__menu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 20;
	width: 218px;
	margin-top: 2px;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--ims-an-line);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.ims-an-item__menu[hidden] {
	display: none !important;
}

.ims-an-item__action {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 10px 11px;
	color: #4f5459;
	font-size: 13px;
	line-height: 1.35;
	cursor: pointer;
}

.ims-an-item__action:hover {
	color: var(--ims-an-text);
	background: #f3f4f5;
}

.ims-an-item__action--delete {
	color: #d92532;
}

.ims-an-item__action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	flex: 0 0 18px;
}

.ims-an__empty {
	padding: 50px 20px;
	color: var(--ims-an-muted);
	text-align: center;
	background: #fafafa;
	border: 1px dashed var(--ims-an-line);
}

.ims-an__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 22px;
}

.ims-an__summary {
	color: #71757a;
	font-size: 13px;
	line-height: 1.4;
}

.ims-an__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-left: auto;
}

.ims-an__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: #555a60;
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--ims-an-line);
	transition:
		color 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease;
}

a.ims-an__page:hover {
	color: #20252b;
	background: #f2f2f2;
}

.ims-an__page.is-active {
	color: #fff;
	background: var(--ims-an-text);
	border-color: var(--ims-an-text);
}

.ims-an__page.is-disabled {
	color: #b8bbc0;
	cursor: default;
	background: #f7f7f7;
}

.ims-an__page--ellipsis {
	border-color: transparent;
	background: transparent;
}

.ims-an__page--arrow {
	font-size: 13px;
}

@media (max-width: 767px) {
	.ims-an__header {
		align-items: stretch;
		flex-direction: column;
		gap: 4px;
		padding-inline: 12px;
	}

	.ims-an__mark-all {
		align-self: flex-end;
		min-height: 36px;
		margin-bottom: 8px;
	}

	.ims-an-item {
		gap: 12px;
		min-height: 0;
		padding: 13px;
	}

	.ims-an-item__image {
		width: 66px;
		height: 66px;
		flex-basis: 66px;
	}

	.ims-an-item__actions {
		position: static;
	}

	.ims-an-item__menu {
		top: 48px;
		right: 12px;
	}

	.ims-an-item__excerpt {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.ims-an__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.ims-an__summary {
		text-align: center;
	}

	.ims-an__pagination {
		max-width: 100%;
		margin-left: 0;
		overflow-x: auto;
		justify-content: flex-start;
		padding-bottom: 4px;
		scrollbar-width: thin;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ims-an-item,
	.ims-an__tab,
	.ims-an-item__more,
	.ims-an__mark-all,
	.ims-an__page {
		transition: none;
	}
}

/* =========================================================
 * Responsive hardening 1.1.1
 * ========================================================= */
.ims-an,
.ims-an__header,
.ims-an__tabs,
.ims-an__tab,
.ims-an-item,
.ims-an-item__main,
.ims-an-item__title,
.ims-an-item__excerpt,
.ims-an__footer,
.ims-an__summary {
	min-width: 0;
}

.ims-an-item__title,
.ims-an-item__excerpt,
.ims-an-item__date,
.ims-an__summary,
.ims-an-item__action {
	overflow-wrap: anywhere;
	word-break: normal;
}

.ims-an-item__menu {
	max-width: calc(100vw - 24px);
}

@media (max-width: 1024px) {
	.ims-an__header {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 10px 16px;
	}

	.ims-an__tabs {
		max-width: 100%;
		flex: 1 1 100%;
		order: 2;
	}

	.ims-an__mark-all {
		margin-left: auto;
	}

	.ims-an__footer {
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	.ims-an__header {
		padding-inline: 12px;
	}

	.ims-an__tabs {
		width: 100%;
		gap: 20px;
	}

	.ims-an__tab {
		min-height: 46px;
		font-size: 13px;
	}

	.ims-an__mark-all {
		align-self: auto;
		margin: 0 0 6px auto;
		white-space: normal;
		text-align: right;
	}

	.ims-an-item {
		display: grid;
		grid-template-columns: 66px minmax(0, 1fr) auto;
		align-items: start;
		gap: 10px 12px;
		padding: 13px 12px;
	}

	.ims-an-item__image {
		grid-column: 1;
		grid-row: 1;
		width: 66px;
		height: 66px;
		flex-basis: auto;
	}

	.ims-an-item__main {
		grid-column: 2;
		grid-row: 1;
		align-self: start;
	}

	.ims-an-item__actions {
		position: relative;
		grid-column: 3;
		grid-row: 1;
	}

	.ims-an-item__menu {
		top: 40px;
		right: 0;
		width: min(218px, calc(100vw - 24px));
	}

	.ims-an__pagination {
		width: 100%;
		max-width: 100%;
		justify-content: flex-start;
		overflow-x: auto;
	}
}

@media (max-width: 480px) {
	.ims-an-item {
		grid-template-columns: 56px minmax(0, 1fr) 32px;
		gap: 9px 10px;
		padding: 12px 10px;
	}

	.ims-an-item__image {
		width: 56px;
		height: 56px;
	}

	.ims-an-item__title {
		font-size: 14px;
	}

	.ims-an-item__excerpt {
		font-size: 12px;
	}

	.ims-an-item__more {
		width: 32px;
		height: 32px;
	}
}
