.midaro-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.midaro-event-card,
.midaro-event-my-row {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.midaro-event-card-image {
	display: block;
	aspect-ratio: 16 / 9;
	background: #f3f4f6;
}

.midaro-event-card-image img,
.midaro-event-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.midaro-event-card-body,
.midaro-event-section,
.midaro-event-action-panel {
	padding: 20px;
}

.midaro-event-status {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: #eef2ff;
	color: #3730a3;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	padding: 7px 10px;
}

.midaro-event-status-live {
	background: #dcfce7;
	color: #166534;
}

.midaro-event-status-ended {
	background: #f3f4f6;
	color: #374151;
}

.midaro-event-status-recording {
	background: #fff7ed;
	color: #9a3412;
}

.midaro-event-meta {
	list-style: none;
	margin: 14px 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.midaro-event-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border: 0;
	border-radius: 6px;
	background: #111827;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	cursor: pointer;
}

.midaro-event-button.secondary {
	background: #e5e7eb;
	color: #111827;
}

.midaro-events-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: end;
	margin: 0 0 24px;
}

.midaro-events-filters label {
	display: grid;
	gap: 5px;
	font-weight: 700;
}

.midaro-events-filters select {
	min-height: 40px;
	min-width: 170px;
}

.midaro-event-detail {
	display: grid;
	gap: 20px;
}

.midaro-event-hero {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: #f3f4f6;
}

.midaro-event-hero iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.midaro-event-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px;
	background: #fff;
}

.midaro-event-section,
.midaro-event-action-panel {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.midaro-event-action-panel {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.midaro-event-inline-form {
	display: inline-flex;
	margin: 0;
}

.midaro-event-added {
	font-weight: 700;
	color: #166534;
}

.midaro-event-instructor {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.midaro-event-materials {
	display: grid;
	gap: 10px;
}

.midaro-event-my-row {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 14px;
	margin: 12px 0;
}

.midaro-event-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

@media (max-width: 700px) {
	.midaro-event-my-row {
		grid-template-columns: 1fr;
	}

	.midaro-events-filters,
	.midaro-event-action-panel {
		align-items: stretch;
	}

	.midaro-event-button,
	.midaro-events-filters select {
		width: 100%;
	}
}
