/**
 * Creator 弹窗层级（Generate / Similar Styles 共用）。
 * 本文件用 filemtime 做缓存版本，不依赖主题库里未 bust 的 excss.css。
 *
 * 弹窗 .mask 常在 .page / .mainer 里（自身 z-index:1 的层叠上下文），
 * 不能指望把 mask 抬到 100011 就压过 fixed 顶栏（z-index:101）；
 * 打开态必须同时把 .header / .search 压到弹窗之下。
 */
body.wap_blur .header,
body.blur .header {
	z-index: 1 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

body.wap_blur .search:not(.search_btn_only),
body.blur .search:not(.search_btn_only) {
	z-index: 1 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* 打开态去掉 mainer 模糊，避免 filter 再造层叠上下文把 fixed 遮罩关在里面 */
body.wap_blur .mainer,
body.blur .mainer {
	filter: none !important;
}

body.wap_blur .mask.on:has(#ai_txt),
body.blur .mask.on:has(#ai_txt) {
	position: fixed !important;
	inset: 0 !important;
	z-index: 100011 !important;
	height: auto !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 16px !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

body.wap_blur .mask.on:has(#ai_txt)::after,
body.blur .mask.on:has(#ai_txt)::after {
	background: rgba(8, 6, 14, 0.55) !important;
}

body.wap_blur .mask.on:has(#ai_txt) .mask_box,
body.blur .mask.on:has(#ai_txt) .mask_box {
	position: relative !important;
	z-index: 10002 !important;
	width: min(1320px, 100%) !important;
	max-height: none !important;
	margin: 0 !important;
	overflow: visible !important;
	transform-origin: center center !important;
}
