.iopopup-panel,
.iopopup-panel * {
	box-sizing: border-box;
}

.iopopup-panel-message,
.iopopup-panel {
	background: #f6f8fb;
	border: 1px solid #d8e0ea;
	border-radius: 8px;
	box-shadow: 0 22px 70px rgba(22, 34, 51, 0.12);
	color: #172033;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 28px auto;
	max-width: 1180px;
	padding: 24px;
}

.iopopup-panel-message {
	background: #fff;
	color: #39485d;
	font-size: 16px;
}

.iopopup-panel__head {
	align-items: flex-start;
	background: #fff;
	border: 1px solid #dde5ee;
	border-radius: 8px;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 14px;
	padding: 22px;
}

.iopopup-panel__head h2 {
	color: #101827;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 6px;
}

.iopopup-panel__head p {
	color: #5b6b80;
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
}

.iopopup-status {
	align-items: center;
	border: 1px solid #ced8e4;
	border-radius: 999px;
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	min-height: 34px;
	padding: 7px 12px;
	white-space: nowrap;
}

.iopopup-status.is-active {
	background: #eaf8f0;
	border-color: #b7e4c7;
	color: #146c43;
}

.iopopup-status.is-inactive {
	background: #f5f6f8;
	color: #526071;
}

.iopopup-panel__meta {
	background: #fff;
	border: 1px solid #dde5ee;
	border-radius: 8px;
	color: #5b6b80;
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	gap: 10px 24px;
	margin-bottom: 14px;
	padding: 13px 16px;
}

.iopopup-panel__meta strong {
	color: #172033;
}

.iopopup-panel__notice {
	border-radius: 8px;
	font-weight: 700;
	margin-bottom: 14px;
	padding: 13px 15px;
}

.iopopup-panel__notice.is-success {
	background: #eaf8f0;
	color: #146c43;
}

.iopopup-panel__notice.is-error {
	background: #fff0f0;
	color: #a12828;
}

.iopopup-panel__grid {
	align-items: start;
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
}

.iopopup-panel__fields {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.iopopup-section,
.iopopup-panel__preview {
	background: #fff;
	border: 1px solid #dde5ee;
	border-radius: 8px;
	box-shadow: 0 10px 26px rgba(22, 34, 51, 0.06);
	display: grid;
	gap: 16px;
	padding: 18px;
}

.iopopup-section__head {
	align-items: flex-start;
	display: flex;
	gap: 12px;
}

.iopopup-section__number {
	align-items: center;
	background: #1769c2;
	border-radius: 8px;
	color: #fff;
	display: inline-flex;
	flex: 0 0 32px;
	font-size: 13px;
	font-weight: 850;
	height: 32px;
	justify-content: center;
}

.iopopup-section__head h3 {
	color: #111827;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	margin: 2px 0 4px;
}

.iopopup-section__head p {
	color: #5b6b80;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.iopopup-panel label,
.iopopup-field {
	display: grid;
	gap: 8px;
	margin: 0;
}

.iopopup-panel label > span,
.iopopup-field > span {
	color: #2f3d50;
	font-size: 13px;
	font-weight: 800;
}

.iopopup-panel input[type="text"],
.iopopup-panel input[type="url"],
.iopopup-panel input[type="file"],
.iopopup-panel select,
.iopopup-panel textarea {
	background: #fff;
	border: 1px solid #cbd6e2;
	border-radius: 8px;
	color: #172033;
	font: inherit;
	min-height: 46px;
	padding: 11px 12px;
	width: 100%;
}

.iopopup-panel input[type="file"] {
	background: #f8fafc;
}

.iopopup-panel textarea {
	line-height: 1.6;
	min-height: 172px;
	resize: vertical;
}

.iopopup-panel input:focus,
.iopopup-panel select:focus,
.iopopup-panel textarea:focus {
	border-color: #1769c2;
	box-shadow: 0 0 0 3px rgba(23, 105, 194, 0.14);
	outline: none;
}

.iopopup-panel__row {
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.iopopup-panel__check {
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e1e7ef;
	border-radius: 8px;
	display: flex !important;
	gap: 9px;
	padding: 11px 12px;
}

.iopopup-panel__check input {
	margin: 0;
}

.iopopup-audience {
	background: #fbfcfe;
}

.iopopup-audience select[multiple] {
	min-height: 176px;
	padding: 8px;
}

.iopopup-audience option {
	padding: 7px 8px;
}

.iopopup-audience__note {
	background: #eef6ff;
	border: 1px solid #cfe4fb;
	border-radius: 8px;
	color: #24547f;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
	padding: 12px 13px;
}

.iopopup-section--actions {
	background: #fff;
}

.iopopup-panel__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.iopopup-button {
	align-items: center;
	background: #f5f7fa;
	border: 1px solid #cbd6e2;
	border-radius: 8px;
	color: #172033;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 800;
	justify-content: center;
	min-height: 46px;
	padding: 11px 17px;
	transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.iopopup-button:hover {
	background: #eef3f8;
	border-color: #b8c6d6;
}

.iopopup-button--primary {
	background: #1769c2;
	border-color: #1769c2;
	color: #fff;
}

.iopopup-button--primary:hover {
	background: #0f58a6;
	border-color: #0f58a6;
	box-shadow: 0 10px 22px rgba(23, 105, 194, 0.22);
}

.iopopup-button:disabled {
	cursor: progress;
	opacity: 0.7;
}

.iopopup-button--accent {
	background: #f97316;
	border-color: #f97316;
	color: #fff;
}

.iopopup-button--accent:hover {
	background: #ea580c;
	border-color: #ea580c;
	box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
	color: #fff;
}

.iopopup-action-hint {
	color: #5b6b80;
	font-size: 13px;
	line-height: 1.5;
	margin: -2px 0 0;
}

.iopopup-panel__preview {
	position: sticky;
	top: 24px;
}

.iopopup-preview-head {
	border-bottom: 1px solid #e4eaf1;
	padding-bottom: 14px;
}

.iopopup-preview-card {
	background: #fff;
	border: 1px solid #dfe7f0;
	border-radius: 8px;
	box-shadow: 0 18px 44px rgba(22, 34, 51, 0.1);
	overflow: hidden;
	padding: 20px;
}

.iopopup-preview-card img {
	aspect-ratio: 16 / 9;
	border-radius: 7px;
	display: block;
	height: auto;
	margin: 0 0 18px;
	object-fit: cover;
	width: 100%;
}

.iopopup-preview-card h3 {
	color: #111827;
	font-size: 24px;
	font-weight: 850;
	line-height: 1.2;
	margin: 0 0 12px;
	overflow-wrap: anywhere;
}

.iopopup-preview-card div {
	color: #44546a;
	font-size: 15px;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.iopopup-preview-link {
	background: #1769c2;
	border-radius: 8px;
	color: #fff;
	display: inline-flex;
	font-weight: 800;
	margin-top: 18px;
	min-height: 42px;
	padding: 10px 14px;
	text-decoration: none;
}

@media (max-width: 980px) {
	.iopopup-panel__grid {
		grid-template-columns: 1fr;
	}

	.iopopup-panel__preview {
		position: static;
	}
}

@media (max-width: 680px) {
	.iopopup-panel {
		margin: 14px auto;
		padding: 12px;
	}

	.iopopup-panel__head,
	.iopopup-section,
	.iopopup-panel__preview {
		padding: 15px;
	}

	.iopopup-panel__head,
	.iopopup-section__head,
	.iopopup-panel__row {
		display: grid;
		grid-template-columns: 1fr;
	}

	.iopopup-panel__head h2 {
		font-size: 24px;
	}

	.iopopup-section__number {
		height: 30px;
		width: 30px;
	}

	.iopopup-button {
		width: 100%;
	}
}
