.celestigram-planet-network-graph,
.celestigram-graph-sandbox-shortcode {
	box-sizing: border-box;
	margin: 1.5rem 0;
	width: 100%;
}

.celestigram-planet-network-graph__title,
.celestigram-graph-sandbox__title {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 0.5rem;
}

.celestigram-planet-network-graph__notice,
.celestigram-graph-sandbox__notice {
	color: #b32d2e;
	font-family: D2Coding, Consolas, Monaco, monospace;
	white-space: pre-wrap;
}

.celestigram-planet-network-graph__caption,
.celestigram-graph-sandbox__caption {
	color: #a1a1a1;
	font-size: 14px;
	font-style: italic;
	line-height: 1.5;
	margin: 0.65rem 0 0;
}

.celestigram-planet-network-graph .celestigram-mermaid-render,
.celestigram-graph-sandbox-shortcode .celestigram-mermaid-render {
	align-items: center;
	background: #fff;
	border: 1px solid #c3c4c7;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	min-height: 280px;
	overflow: hidden;
	padding: 16px;
	position: relative;
	width: 100%;
}

.celestigram-planet-network-graph .celestigram-mermaid-output,
.celestigram-graph-sandbox-shortcode .celestigram-mermaid-output {
	align-items: center;
	display: flex;
	justify-content: center;
	min-width: 0;
	overflow: hidden;
	width: 100%;
}

.celestigram-planet-network-graph .celestigram-mermaid-output svg,
.celestigram-graph-sandbox-shortcode .celestigram-mermaid-output svg {
	height: auto;
	max-width: none;
	transform-box: fill-box;
}

.celestigram-planet-network-graph .celestigram-mermaid-output--error,
.celestigram-graph-sandbox-shortcode .celestigram-mermaid-output--error {
	color: #b32d2e;
	font-family: D2Coding, Consolas, Monaco, monospace;
	white-space: pre-wrap;
}

.celestigram-mermaid-render--scaling {
	cursor: ns-resize;
	user-select: none;
}

.celestigram-mermaid-render--panning {
	cursor: grabbing;
	user-select: none;
}

body.celestigram-entry-content-viewport-active {
	overflow: hidden;
}

div.entry-content.celestigram-entry-content-viewport {
	background: #fff;
	box-sizing: border-box;
	height: calc(100vh - var(--celestigram-entry-content-viewport-top, 0px));
	inset: var(--celestigram-entry-content-viewport-top, 0px) 0 0 0;
	margin: 0;
	max-width: none;
	overflow: auto;
	padding: 24px;
	position: fixed;
	width: 100vw;
	z-index: 99999;
}

div.entry-content.celestigram-entry-content-viewport .celestigram-planet-network-graph .celestigram-mermaid-render,
div.entry-content.celestigram-entry-content-viewport .celestigram-graph-sandbox-shortcode .celestigram-mermaid-render {
	min-height: calc(100vh - var(--celestigram-entry-content-viewport-top, 0px) - 48px);
}
