/* E2E dashboard shell */

.smp-e2e {
	margin: 0;
	min-height: 100vh;
	background: #f4f5f7;
	color: #1f2430;
	font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.smp-e2e__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 12px 20px;
	background: #fff;
	border-bottom: 1px solid #d5d8e0;
	position: sticky;
	top: 0;
	z-index: 20;
}

.smp-e2e__brand {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-weight: 600;
}

.smp-e2e__brand a {
	color: #0b6bcb;
	text-decoration: none;
}

.smp-e2e__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}

.smp-e2e__meta code {
	font-size: 12px;
	max-width: 360px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.smp-e2e__badge {
	padding: 4px 10px;
	border-radius: 999px;
	background: #e8e9ee;
	color: #4d5469;
	font-size: 12px;
	font-weight: 600;
}

.smp-e2e__badge.is-running {
	background: #fff4d6;
	color: #8a5a00;
}

.smp-e2e__badge.is-passed {
	background: #e3f6ea;
	color: #1b7a3d;
}

.smp-e2e__badge.is-failed {
	background: #fde8e8;
	color: #b42318;
}

.smp-e2e__main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 28px 20px 64px;
}

.smp-e2e__main--suite {
	max-width: 1200px;
}

.smp-e2e__main > h1,
.smp-e2e-section > h1 {
	margin: 0 0 8px;
	font-size: 28px;
	font-family: "IBM Plex Serif", Georgia, serif;
}

.smp-e2e__lead {
	margin: 0 0 24px;
	color: #5f6780;
	font-size: 15px;
}

.smp-e2e__muted {
	color: #5f6780;
	font-size: 13px;
}

.smp-e2e__cards {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.smp-e2e__card a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	background: #fff;
	border: 1px solid #d5d8e0;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	min-height: 110px;
}

.smp-e2e__card a:hover {
	border-color: #0b6bcb;
}

.smp-e2e__card code {
	font-size: 12px;
	color: #0b6bcb;
	word-break: break-all;
}

.smp-e2e-section {
	margin: 0 0 32px;
}

.smp-e2e__section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.smp-e2e-section h2 {
	margin: 0 0 12px;
	font-size: 18px;
}

.smp-e2e__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.smp-e2e__btn {
	appearance: none;
	border: 1px solid #c5cad6;
	background: #fff;
	color: #1f2430;
	padding: 8px 12px;
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.smp-e2e__btn:hover {
	background: #eef1f6;
}

.smp-e2e__btn--primary {
	background: #0b6bcb;
	border-color: #0b6bcb;
	color: #fff;
}

.smp-e2e__btn--primary:hover {
	background: #0958a8;
}

.smp-e2e__btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.smp-e2e__specs {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid #d5d8e0;
	border-radius: 8px;
	overflow: hidden;
}

.smp-e2e__specs li {
	border-top: 1px solid #e8e9ee;
}

.smp-e2e__specs li:first-child {
	border-top: 0;
}

.smp-e2e__specs label {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 10px 14px;
	cursor: pointer;
}

.smp-e2e__specs code {
	font-size: 12px;
	color: #5f6780;
}

.smp-e2e__log {
	margin: 0;
	padding: 14px;
	min-height: 220px;
	max-height: 420px;
	overflow: auto;
	background: #151821;
	color: #d7dce8;
	border-radius: 8px;
	font-size: 12px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}

.smp-e2e__history {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.smp-e2e__run-details {
	background: #fff;
	border: 1px solid #d5d8e0;
	border-radius: 8px;
	overflow: hidden;
}

.smp-e2e__run-details > summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	cursor: pointer;
	list-style: none;
}

.smp-e2e__run-details > summary::-webkit-details-marker {
	display: none;
}

.smp-e2e__run-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	flex: 1;
}

.smp-e2e__run-meta code {
	font-size: 12px;
	color: #5f6780;
}

.smp-e2e__run-id {
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.smp-e2e__run-body {
	border-top: 1px solid #e8e9ee;
	padding: 10px 14px 14px;
	background: #fafbfc;
}

.smp-e2e__test-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.smp-e2e__test-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
}

.smp-e2e__test-title {
	font-weight: 600;
}

.smp-e2e__test-head code {
	font-size: 11px;
	color: #5f6780;
}

.smp-e2e__test-error {
	margin: 8px 0 0;
	padding: 10px 12px;
	background: #151821;
	color: #ffb4a8;
	border-radius: 6px;
	font-size: 11px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 240px;
	overflow: auto;
}

.smp-e2e__badge--sm {
	padding: 2px 8px;
	font-size: 11px;
}

.smp-e2e__shots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.smp-e2e__shot {
	margin: 0;
	background: #fff;
	border: 1px solid #d5d8e0;
	border-radius: 8px;
	overflow: hidden;
}

.smp-e2e__shot img {
	display: block;
	width: 100%;
	height: 140px;
	object-fit: cover;
	background: #e8e9ee;
}

.smp-e2e__shot figcaption {
	padding: 8px 10px;
	font-size: 11px;
	color: #5f6780;
	word-break: break-all;
}

@media (max-width: 720px) {
	.smp-e2e__specs label {
		grid-template-columns: 1fr;
	}
}
