.cus-admin-wrap {
	max-width: 1100px;
}

.cus-admin-wrap .cus-intro {
	margin: 0 0 20px;
	font-size: 14px;
	color: #50575e;
}

/* Post type filter card */
.cus-admin-wrap .cus-post-type-filter {
	margin: 0 0 24px;
	padding: 0;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.cus-admin-wrap .cus-post-type-filter__header {
	padding: 20px 24px 0;
}

.cus-admin-wrap .cus-post-type-filter__header h2 {
	margin: 0 0 6px;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.cus-admin-wrap .cus-post-type-filter__header .description {
	margin: 0;
}

.cus-admin-wrap .cus-post-type-filter__list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	margin: 20px 24px 24px;
	padding: 0 !important;
	list-style: none !important;
}

.cus-admin-wrap .cus-post-type-filter__list li {
	margin: 0 !important;
	padding: 0 !important;
}

.cus-admin-wrap .cus-post-type-option {
	display: grid !important;
	grid-template-columns: 20px 1fr auto;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cus-admin-wrap .cus-post-type-option:hover {
	border-color: #2271b1;
	background: #f0f6fc;
}

.cus-admin-wrap .cus-post-type-option:has(input:checked) {
	border-color: #2271b1;
	background: #fff;
	box-shadow: inset 3px 0 0 #2271b1;
}

.cus-admin-wrap .cus-post-type-checkbox {
	width: 18px;
	height: 18px;
	margin: 0 !important;
}

.cus-admin-wrap .cus-post-type-option__label {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: #1d2327;
}

.cus-admin-wrap .cus-post-type-option__slug {
	display: inline-block;
	padding: 3px 10px;
	font-size: 11px;
	line-height: 1.4;
	font-family: Consolas, Monaco, monospace;
	color: #50575e;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 999px;
	white-space: nowrap;
}

.cus-admin-wrap .cus-post-type-filter__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin: 0;
	padding: 20px 24px;
	border-top: 1px solid #dcdcde;
	background: #f6f7f7;
}

.cus-admin-wrap .cus-post-type-filter__toolbar .cus-incremental-option {
	flex: 1 1 100%;
	order: 3;
}

.cus-admin-wrap .cus-post-type-filter__toolbar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cus-admin-wrap .cus-post-type-filter__toolbar .button-hero {
	min-height: 40px;
	padding-left: 24px;
	padding-right: 24px;
	line-height: 38px;
}

.cus-admin-wrap .cus-incremental-option {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	font-weight: normal;
}

.cus-admin-wrap .cus-progress-wrap {
	margin: 16px 24px 0;
	padding: 14px 16px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.cus-admin-wrap .cus-progress__label {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 500;
}

.cus-admin-wrap .cus-progress__track {
	height: 12px;
	margin-bottom: 10px;
	background: #dcdcde;
	border-radius: 6px;
	overflow: hidden;
}

.cus-admin-wrap .cus-progress__fill {
	height: 100%;
	width: 0;
	background: #2271b1;
	border-radius: 6px;
	transition: width 0.2s ease;
}

/* Results card (tabs + content) */
.cus-admin-wrap .cus-results {
	margin-top: 24px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.cus-admin-wrap .cus-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 12px 12px 0;
	border-bottom: 1px solid #c3c4c7;
	background: #f6f7f7;
}

.cus-admin-wrap .cus-tabs .cus-tab {
	margin: 0 0 -1px;
	padding: 10px 18px;
	background: transparent !important;
	border: 1px solid transparent !important;
	border-bottom: none !important;
	border-radius: 4px 4px 0 0;
	color: #50575e !important;
	font-weight: 500;
	box-shadow: none !important;
}

.cus-admin-wrap .cus-tabs .cus-tab:hover {
	color: #2271b1 !important;
	background: #f0f6fc !important;
}

.cus-admin-wrap .cus-tabs .cus-tab.is-active {
	background: #fff !important;
	border-color: #c3c4c7 !important;
	border-bottom-color: #fff !important;
	color: #1d2327 !important;
	position: relative;
	z-index: 1;
}

.cus-admin-wrap .cus-tabs .cus-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cus-admin-wrap .cus-tab__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	border-radius: 999px;
	background: #dcdcde;
	color: #1d2327;
}

.cus-admin-wrap .cus-tabs .cus-tab.is-active .cus-tab__badge {
	background: #2271b1;
	color: #fff;
}

.cus-admin-wrap .cus-tab-body {
	background: #fff;
}

.cus-admin-wrap .cus-app-status {
	display: none;
	margin: 0;
	padding: 0;
}

.cus-admin-wrap .cus-app-status.is-visible {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 16px 24px 0;
	padding: 10px 14px;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.4;
	border-radius: 4px;
	border: 1px solid #b8e6bf;
	background: #edfaef;
	color: #1e4620;
}

.cus-admin-wrap .cus-app-status__text {
	flex: 1;
}

.cus-admin-wrap .cus-app-status__dismiss {
	flex-shrink: 0;
	margin: 0;
	padding: 0 6px;
	border: none;
	background: transparent;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
}

.cus-admin-wrap .cus-app-status__dismiss:hover {
	opacity: 1;
}

.cus-admin-wrap .cus-app-status.is-visible.is-error {
	border-color: #f1aeb5;
	background: #fcf0f1;
	color: #8a2424;
}

.cus-admin-wrap .cus-tab-panel {
	padding: 20px 24px;
	background: #fff;
	border: none;
	border-radius: 0;
}

.cus-admin-wrap .cus-tab-body:has( .cus-app-status.is-visible ) .cus-tab-panel {
	padding-top: 12px;
}

.cus-admin-wrap .cus-tab-panel[hidden] {
	display: none !important;
}

.cus-admin-wrap .cus-tab-panel > p:first-child {
	margin-top: 0;
}

.cus-admin-wrap .cus-scan-summary {
	margin: 0 0 12px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 500;
	color: #1d2327;
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
	border-radius: 0 4px 4px 0;
}

.cus-admin-wrap .cus-results-toolbar {
	margin-bottom: 16px;
}

.cus-admin-wrap .cus-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.cus-admin-wrap .cus-filter-bar label {
	font-weight: 500;
	margin: 0;
}

.cus-admin-wrap .cus-filter-input {
	flex: 1;
	min-width: 220px;
	max-width: 400px;
}

.cus-admin-wrap .cus-empty-state {
	padding: 32px 24px;
	text-align: center;
	background: #f6f7f7;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
}

.cus-admin-wrap .cus-empty-state p {
	margin: 0;
	font-size: 14px;
	color: #50575e;
}

.cus-admin-wrap .cus-used-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cus-admin-wrap .cus-used-list li {
	padding: 10px 14px;
	margin-bottom: 8px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
}

.cus-admin-wrap .cus-tab-help {
	margin: 0 0 12px;
}

.cus-admin-wrap .cus-shortcodes-table {
	margin: 0;
	border: 1px solid #c3c4c7;
	border-spacing: 0;
}

.cus-admin-wrap .cus-shortcodes-table th {
	font-weight: 600;
}

.cus-admin-wrap .cus-shortcodes-table td {
	vertical-align: top;
}

.cus-admin-wrap .cus-shortcodes-table td ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cus-admin-wrap .cus-shortcodes-table td ul li {
	padding: 6px 0;
	border-bottom: 1px solid #f0f0f1;
}

.cus-admin-wrap .cus-shortcodes-table td ul li:last-child {
	border-bottom: none;
}

.cus-admin-wrap .cus-tab-panel > ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cus-admin-wrap .cus-tab-panel > ul li {
	padding: 10px 14px;
	margin-bottom: 8px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
}

.cus-admin-wrap .cus-protected-shortcodes {
	margin-bottom: 24px;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
}

.cus-admin-wrap .cus-protected-shortcodes h2 {
	margin: 0 0 8px;
	font-size: 16px;
}

.cus-admin-wrap .cus-protected-shortcodes textarea {
	width: 100%;
	max-width: 600px;
	font-family: Consolas, Monaco, monospace;
}

.cus-admin-wrap .cus-inline-status {
	margin-left: 8px;
	font-size: 13px;
	color: #1e4620;
}

.cus-admin-wrap .cus-results-toolbar .button {
	margin-right: 6px;
}

.cus-admin-wrap .cus-col-skip {
	min-width: 140px;
}

.cus-admin-wrap .cus-skip-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: normal;
}

.cus-admin-wrap .cus-actions-cell {
	white-space: nowrap;
}

.cus-admin-wrap .cus-actions-cell .button {
	margin: 2px 0;
}

body.cus-modal-open {
	overflow: hidden;
}

.cus-modal {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 32px 16px;
	background: rgba(0, 0, 0, 0.55);
	overflow-y: auto;
}

.cus-modal[hidden] {
	display: none !important;
}

.cus-modal__dialog {
	position: relative;
	width: min(960px, 100%);
	max-height: calc(100vh - 64px);
	overflow: auto;
	padding: 24px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cus-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	border: none;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #50575e;
}

.cus-modal__dialog h2 {
	margin: 0 32px 16px 0;
	padding: 0;
	font-size: 18px;
}

.cus-modal__body {
	font-size: 13px;
}

.cus-preview-count {
	margin: 0 0 12px;
	font-weight: 500;
}

.cus-snippet {
	margin: 0;
	padding: 10px;
	max-height: 120px;
	overflow: auto;
	font-size: 12px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
	background: #fcf0f1;
	border: 1px solid #f1aeb5;
	border-radius: 4px;
}

.cus-snippet--after {
	background: #edfaef;
	border-color: #b8e6bf;
}

.cus-preview-table td {
	vertical-align: top;
}

@media (max-width: 782px) {
	.cus-admin-wrap .cus-post-type-filter__list {
		grid-template-columns: 1fr;
	}

	.cus-admin-wrap .cus-post-type-filter__toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.cus-admin-wrap .cus-post-type-filter__toolbar .button-hero {
		width: 100%;
		text-align: center;
	}
}
