.mendelc-conductor-shell {
	--mendelc-conductor-primary: #2656d9;
	--mendelc-conductor-border: rgba(17, 24, 39, 0.12);
	--mendelc-conductor-muted: #6b7280;
	--mendelc-conductor-ink: #111827;
	color: var(--mendelc-conductor-ink);
	font-family: inherit;
}

.mendelc-conductor-card {
	background: #ffffff;
	border: 1px solid var(--mendelc-conductor-border);
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
	overflow: visible;
	padding: clamp(18px, 3vw, 28px);
}

.mendelc-conductor-card__header h2 {
	font-size: clamp(1.35rem, 3.2vw, 1.8rem);
	font-weight: 800;
	margin: 0 0 16px;
}

.mendelc-conductor-eyebrow {
	color: var(--mendelc-conductor-primary);
	font-size: clamp(0.78rem, 2vw, 0.88rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.mendelc-conductor-event-title {
	color: var(--mendelc-conductor-ink);
	font-size: clamp(1.35rem, 3.2vw, 1.8rem);
	font-weight: 800;
	line-height: 1.12;
	margin: 0 0 10px;
}

.mendelc-conductor-controls {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 4px;
}

.mendelc-conductor-sort-label {
	color: var(--mendelc-conductor-muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	white-space: nowrap;
}

.mendelc-conductor-sort-select {
	background: #ffffff;
	border: 1px solid var(--mendelc-conductor-border);
	border-radius: 12px;
	color: var(--mendelc-conductor-ink);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	max-width: 100%;
	padding: 6px 10px;
	width: 25%;
}

.mendelc-conductor-sort-select:focus-visible {
	border-color: rgba(38, 86, 217, 0.45);
	box-shadow: 0 0 0 3px rgba(38, 86, 217, 0.12);
	outline: none;
}

.mendelc-conductor-toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-bottom: 14px;
}

.mendelc-conductor-toolbar__label {
	color: var(--mendelc-conductor-muted);
	font-size: 0.88rem;
	font-weight: 700;
}

.mendelc-conductor-sort {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mendelc-conductor-sort__btn {
	display: none;
}

.mendelc-conductor-toolbar__count {
	color: var(--mendelc-conductor-muted);
	font-size: 0.84rem;
	margin: 0;
	margin-inline-start: auto;
}

.mendelc-conductor-status {
	font-size: 0.92rem;
	font-weight: 700;
	margin-bottom: 10px;
	min-height: 1.4em;
}

.mendelc-conductor-status.is-success {
	color: #047857;
}

.mendelc-conductor-status.is-error {
	color: #b42318;
}

.mendelc-conductor-table-wrap {
	border: 1px solid var(--mendelc-conductor-border);
	border-radius: 16px;
	height: auto;
	max-height: none;
	overflow: visible;
}

.mendelc-conductor-table {
	border-collapse: collapse;
	width: 100%;
}

.mendelc-conductor-table th,
.mendelc-conductor-table td {
	padding: 12px 14px;
	text-align: right;
	vertical-align: middle;
}

.mendelc-conductor-table tbody td {
	color: var(--mendelc-conductor-ink);
	font-size: clamp(1.02rem, 2.6vw, 1.18rem);
	font-weight: 800;
	line-height: 1.35;
}

.mendelc-conductor-table thead th {
	background: #f9fafb;
	border-bottom: 1px solid var(--mendelc-conductor-border);
	color: var(--mendelc-conductor-muted);
	font-size: 0.82rem;
	font-weight: 700;
	position: sticky;
	top: 0;
	z-index: 1;
}

.mendelc-conductor-table tbody tr + tr td {
	border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.mendelc-conductor-table tbody tr:nth-child(even) {
	background: rgba(17, 24, 39, 0.02);
}

.mendelc-conductor-table__empty td {
	color: var(--mendelc-conductor-muted);
	padding: 20px 12px;
	text-align: center;
}

.mendelc-conductor-table__actions {
	white-space: nowrap;
	width: 1%;
}

.mendelc-conductor-send {
	background: #ffffff;
	border: 1px solid var(--mendelc-conductor-primary);
	border-radius: 999px;
	color: var(--mendelc-conductor-primary);
	cursor: pointer;
	font: inherit;
	font-size: clamp(0.88rem, 2vw, 0.98rem);
	font-weight: 800;
	padding: 8px 15px;
	transition: background 160ms ease, color 160ms ease;
}

.mendelc-conductor-send:hover,
.mendelc-conductor-send:focus-visible {
	background: rgba(38, 86, 217, 0.08);
	outline: none;
}

.mendelc-conductor-send.is-armed {
	background: var(--mendelc-conductor-primary);
	color: #ffffff;
}

.mendelc-conductor-send:disabled {
	cursor: wait;
	opacity: 0.65;
}

.mendelc-conductor-shell.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

.mendelc-conductor-shell.is-loading.is-loading--silent {
	opacity: 1;
	pointer-events: auto;
}

.mendelc-host-message-overlay[hidden] {
	display: none !important;
}

.mendelc-host-message-overlay {
	align-items: center;
	background: rgba(17, 24, 39, 0.72);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 99999;
}

.mendelc-host-message-overlay__card {
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
	max-width: min(720px, 92vw);
	padding: clamp(22px, 4vw, 34px);
	text-align: center;
	width: 100%;
}

.mendelc-host-message-overlay__text {
	font-size: clamp(1.35rem, 3.5vw, 2rem);
	font-weight: 800;
	line-height: 1.35;
	margin: 0 0 22px;
	white-space: pre-wrap;
}

.mendelc-host-message-overlay__close {
	background: var(--mendelc-conductor-primary);
	border: 0;
	border-radius: 999px;
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-size: 1rem;
	font-weight: 800;
	min-width: 140px;
	padding: 12px 28px;
}

@media (max-width: 1024px) {
	.mendelc-conductor-shell,
	.mendelc-conductor-shell .mendelc-conductor-card {
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.mendelc-conductor-shell .mendelc-conductor-table-wrap {
		-webkit-overflow-scrolling: touch;
		height: auto !important;
		max-height: none !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
	}

	.mendelc-conductor-shell .mendelc-conductor-table thead th {
		position: static;
	}

	.mendelc-conductor-table th,
	.mendelc-conductor-table td {
		padding: 10px 12px;
	}
}
