.misticgate-wrap {
	margin: 34px 20px 0 2px;
}

.misticgate-shell {
	max-width: 880px;
}

.misticgate-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 24px;
}

.misticgate-header h1 {
	margin: 2px 0 8px;
	font-size: clamp(28px, 4vw, 38px);
	line-height: 1.18;
	letter-spacing: -0.025em;
}

.misticgate-header > div > p:last-child {
	max-width: 650px;
	margin: 0;
	color: #50575e;
	font-size: 15px;
}

.misticgate-kicker {
	margin: 0;
	color: #6c5ce7;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.misticgate-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	margin-top: 8px;
	padding: 7px 12px;
	border: 1px solid #dcdcde;
	border-radius: 999px;
	background: #fff;
	font-weight: 600;
}

.misticgate-status span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #a7aaad;
}

.misticgate-status.is-enabled {
	border-color: #a7e4c2;
	color: #08783e;
	background: #f0fbf5;
}

.misticgate-status.is-enabled span {
	background: #00a32a;
	box-shadow: 0 0 0 3px rgba(0, 163, 42, 0.12);
}

.misticgate-card {
	position: relative;
	margin: 0 0 18px;
	border: 1px solid #dcdcde;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(31, 35, 40, 0.035);
	overflow: hidden;
}

.misticgate-card-primary {
	border-color: #c9c4f5;
}

.misticgate-card-pending {
	border-color: #b7d8f2;
	background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.misticgate-card-body {
	padding: 28px;
}

.misticgate-card h2 {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.35;
}

.misticgate-tabs {
	margin: 0 0 24px;
}

.misticgate-readme h2 {
	margin-top: 28px;
	font-size: 17px;
}

.misticgate-readme h2:first-child {
	margin-top: 0;
}

.misticgate-readme ol,
.misticgate-readme ul {
	margin: 0 0 14px 22px;
	line-height: 1.6;
}

.misticgate-readme ul {
	list-style: disc;
}

.misticgate-readme code {
	overflow-wrap: anywhere;
}

.misticgate-card p {
	margin: 0 0 20px;
	color: #50575e;
	font-size: 14px;
	line-height: 1.65;
}

.misticgate-label {
	display: inline-flex;
	margin: 0 0 10px !important;
	padding: 4px 9px;
	border-radius: 999px;
	background: #e8f4fd;
	color: #0a4b78 !important;
	font-size: 12px !important;
	font-weight: 700;
}

.misticgate-url-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	margin: 18px 0 22px;
}

.misticgate-url {
	width: 100%;
	min-height: 46px;
	padding: 0 14px !important;
	border-color: #b8bcc2 !important;
	border-radius: 8px !important;
	background: #f6f7f7 !important;
	box-shadow: none !important;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 13px;
}

.misticgate-url:focus {
	border-color: #6c5ce7 !important;
	box-shadow: 0 0 0 1px #6c5ce7 !important;
}

.misticgate-copy.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 46px;
	padding: 0 18px;
	border-color: #5b4ed1;
	background: #5b4ed1;
}

.misticgate-copy.button:hover,
.misticgate-copy.button:focus {
	border-color: #493daf;
	background: #493daf;
}

.misticgate-copy.button.is-copied {
	border-color: #008a20;
	background: #008a20;
}

.misticgate-copy .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.misticgate-confirm-form {
	margin-top: 4px;
}

.misticgate-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 18px;
	font-weight: 600;
	line-height: 1.45;
	cursor: pointer;
}

.misticgate-check input {
	margin: 1px 0 0;
}

.misticgate-roles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px 16px;
	min-width: 0;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

.misticgate-roles .misticgate-check {
	margin: 0;
	font-weight: 400;
}

.misticgate-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
}

.misticgate-actions form {
	display: inline-flex;
	margin: 0;
}

.misticgate-actions .button-link-delete {
	border: 1px solid #b32d2e;
	border-radius: 3px;
	background: #f6f7f7;
	text-decoration: none;
	cursor: pointer;
}

.misticgate-cancel-form {
	margin-top: 14px;
}

.misticgate-footnote {
	margin: 15px 0 0 !important;
	font-size: 12px !important;
}

.misticgate-notice {
	margin: 0 0 18px;
	padding: 13px 16px;
	border: 1px solid #c3c4c7;
	border-left-width: 4px;
	border-radius: 8px;
	background: #fff;
	font-weight: 600;
}

.misticgate-notice.is-success {
	border-left-color: #00a32a;
}

.misticgate-notice.is-info {
	border-left-color: #2271b1;
}

.misticgate-notice.is-error {
	border-left-color: #d63638;
}

.misticgate-warning {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 16px 2px 0;
	color: #8a5a00;
}

.misticgate-warning .dashicons {
	margin-top: 1px;
}

.misticgate-live {
	position: fixed;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 700px) {
	.misticgate-roles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.misticgate-wrap {
		margin-top: 24px;
	}

	.misticgate-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.misticgate-status {
		margin-top: 0;
	}

	.misticgate-card-primary {
		grid-template-columns: 1fr;
	}

	.misticgate-step {
		justify-content: flex-start;
		padding: 20px 22px 0;
		background: #fff;
	}

	.misticgate-card-body {
		padding: 22px;
	}

	.misticgate-url-row {
		grid-template-columns: 1fr;
	}

	.misticgate-copy.button {
		width: 100%;
	}

}

@media (prefers-reduced-motion: reduce) {
	.misticgate-wrap *,
	.misticgate-wrap *::before,
	.misticgate-wrap *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

.misticgate-shell-wide {
	max-width: 1080px;
}

.misticgate-back {
	margin: 0 0 18px;
}

.misticgate-site-url {
	color: #646970;
	font-size: 12px;
	word-break: break-all;
}

.misticgate-sites-table th,
.misticgate-sites-table td {
	vertical-align: middle;
}

.misticgate-sites-table th:first-child {
	width: 68%;
}

.misticgate-sites-action {
	width: 88px;
	text-align: right !important;
}

.misticgate-table-status {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 9px;
	border-radius: 999px;
	background: #f0f0f1;
	color: #50575e;
	font-size: 12px;
	font-weight: 700;
}

.misticgate-table-status.is-enabled {
	background: #edfaef;
	color: #08783e;
}

.misticgate-card .tablenav {
	margin: 18px 0 0;
}

@media (max-width: 782px) {
	.misticgate-sites-table {
		table-layout: fixed;
		width: 100%;
	}

	.misticgate-sites-table th,
	.misticgate-sites-table td {
		padding: 8px 4px;
		overflow-wrap: anywhere;
	}

	.misticgate-sites-table th:first-child {
		width: 36%;
	}

	.misticgate-sites-table .misticgate-sites-action {
		width: 32%;
	}

	.misticgate-sites-action .button {
		white-space: normal;
		overflow-wrap: normal;
		font-size: 13px;
		padding: 0 4px;
		height: auto;
	}

	.misticgate-table-status {
		padding: 4px 6px;
	}
}

.misticgate-network-card {
	border-color: #c9c4f5;
	background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
}

.misticgate-network-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.misticgate-network-heading > div {
	min-width: 0;
}

.misticgate-network-heading > div > p:last-child {
	margin-bottom: 0;
}

.misticgate-section-heading {
	margin-bottom: 20px;
}

.misticgate-section-heading h2 {
	margin-bottom: 6px;
}

.misticgate-section-heading p {
	margin-bottom: 0;
}

@media screen and (max-width: 782px) {
	.misticgate-network-heading {
		flex-direction: column;
		gap: 10px;
	}

	.misticgate-network-heading .misticgate-status {
		margin-top: 0;
	}
}
