.gate-error {
	justify-content: center;
}

.gate-error[hidden] {
	display: none;
}

.avatar {
	position: relative;
	overflow: hidden;
}

.avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.co-plugin-card:hover {
	background: var(--hover);
}

.co-home-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.co-home-section .muted {
	max-width: 72ch;
}

.co-home-link {
	margin: 14px 0 0;
}

.co-chain-grid {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.co-chain-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

a.co-chain-card {
	color: inherit;
	text-decoration: none;
}

.co-chain-step {
	position: absolute;
	top: 14px;
	right: 16px;
	font-size: 12px;
	color: var(--faint);
}

.co-chain-question {
	color: var(--ink);
}

.co-chain-install {
	font-size: 12px;
	color: var(--muted);
	overflow-wrap: anywhere;
}

.co-home-section .code-sample,
.co-home-section .table-scroll {
	margin: 12px 0 20px;
}

.co-chain-card .status {
	align-self: flex-start;
	margin-top: auto;
}

.co-home-section .code-sample pre {
	margin: 0;
	padding: 16px;
	overflow-x: auto;
}

.co-chain-monitor {
	width: min(680px, 84%);
}

.co-chain-caption {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.55);
}

.co-chain-led {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ff6500;
	box-shadow: 0 0 8px #ff6500;
	animation: co-chain-led 0.9s ease-in-out infinite;
}

@keyframes co-chain-led {
	0%,
	100% {
		opacity: 0.35;
	}
	15% {
		opacity: 1;
	}
}

.co-chain {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	font-family: var(--mono);
}

.co-chain-station {
	fill: #161616;
	stroke: rgb(255 255 255 / 0.25);
}

.co-chain-label,
.co-chain-lit-label {
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	fill: rgb(255 255 255 / 0.5);
}

.co-chain-link {
	fill: none;
	stroke: rgb(255 255 255 / 0.3);
}

.co-chain-lit-station {
	fill: #ff6500;
	stroke: #ff6500;
	filter: drop-shadow(0 0 10px rgb(255 101 0 / 0.6));
}

.co-chain-lit-label {
	fill: #ff6500;
}

.co-chain-trace,
.co-chain-beam {
	fill: none;
	stroke-linecap: round;
}

.co-chain-trace {
	stroke: rgb(255 101 0 / 0.16);
	stroke-width: 2;
}

.co-chain-beam {
	stroke: #ff6500;
	stroke-width: 3;
	filter: drop-shadow(0 0 6px rgb(255 101 0 / 0.9));
}

.co-chain-head {
	fill: #ffefd3;
	filter: drop-shadow(0 0 8px #ff6500);
}

@media (prefers-reduced-motion: reduce) {
	.co-chain-lit,
	.co-chain-trace,
	.co-chain-beam,
	.co-chain-head {
		display: none;
	}

	.co-chain-station.is-current {
		fill: #ff6500;
		stroke: #ff6500;
	}

	.co-chain-led {
		animation: none;
		opacity: 1;
	}
}

@media print {
	.sidebar,
	.sidebar-resize {
		display: none;
	}
}

.co-example-dialog {
	width: calc(100vw - 48px);
	max-width: 1600px;
	height: calc(100vh - 48px);
	max-height: none;
	margin: auto;
	padding: 0;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 24px 64px rgb(23 23 23 / 0.24);
	overflow: hidden;
}

.co-example-dialog::backdrop {
	background: rgb(23 23 23 / 0.45);
}

.co-example-frame {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.co-example-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px 12px 24px;
	border-bottom: 1px solid var(--line);
}

.co-example-head .eyebrow,
.co-example-title {
	margin: 0;
}

.co-example-actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 8px;
}

.co-example-page {
	flex: 1;
	width: 100%;
	border: 0;
	background: var(--surface);
}

@media (max-width: 760px) {
	.co-example-dialog {
		width: 100vw;
		height: 100vh;
		border: 0;
	}

	.co-example-head {
		padding-left: 16px;
	}

	.co-example-title,
	.co-example-actions .button {
		display: none;
	}
}

.co-brick-steps {
	margin: 12px 0 0;
	padding-left: 1.4em;
	max-width: 72ch;
}

.co-brick-steps li + li {
	margin-top: 8px;
}

.co-mermaid {
	margin: 8px 0 24px;
	padding: 24px;
	border: 1px solid var(--line);
	background: var(--surface);
	overflow-x: auto;
	text-align: center;
}

.co-mermaid pre {
	margin: 0;
	font-family: var(--mono);
	font-size: 12px;
	text-align: left;
	color: var(--muted);
	white-space: pre;
}

.co-mermaid svg {
	max-width: 100%;
	height: auto;
}

.co-mermaid foreignObject {
	overflow: visible;
}
