/* ==== modal_vsp ==== */
.ins {
	font-size: 14.5px;
	line-height: 1.6;
	color: inherit;
}

/* ---- шапка ---- */
.ins-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	margin-bottom: 14px;
	background: linear-gradient(135deg, #eef3ff 0%, #e3ebff 100%);
	border-radius: 12px;
	border-left: 4px solid var(--btn-primary);
}
.ins-header-icon {
	font-size: 30px;
	line-height: 1;
	flex-shrink: 0;
}
.ins-header-title {
	font-size: 16px;
	font-weight: 700;
	color: #3a4aa8;
	line-height: 1.3;
}
.ins-header-sub {
	font-size: 12.5px;
	color: #5a6dbe;
	margin-top: 2px;
}
html[data-theme='dark'] .ins-header {
	background: linear-gradient(135deg, #1e2440 0%, #1a1d27 100%);
	border-left-color: var(--btn-primary);
}
html[data-theme='dark'] .ins-header-title {
	color: #aab4ff;
}
html[data-theme='dark'] .ins-header-sub {
	color: #8090c0;
}

/* ---- чипы-теги ---- */
.ins-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}
.ins-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--bg-hover);
	border: 1px solid var(--border-color);
	color: var(--text-muted);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}
.ins-tag-accent {
	background: var(--bg-hover);
	border-color: var(--btn-primary);
	color: var(--btn-primary);
}

/* ---- общая заметка ---- */
.ins-note {
	padding: 12px 14px;
	margin: 0 0 16px;
	background: var(--bg-hover);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	font-size: 13.5px;
}
.ins-note ul {
	margin: 8px 0 0;
	padding-left: 20px;
}
.ins-note li {
	margin: 3px 0;
}

/* ---- секции ---- */
.ins-section {
	margin: 0 0 18px;
	padding: 0;
}
.ins-h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 15px;
	font-weight: 700;
	color: var(--text-main);
	margin: 0 0 8px;
	line-height: 1.35;
}
.ins-h3-lg {
	font-size: 16px;
}
.ins-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--btn-primary);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}
.ins-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.ins-badge-region {
	background: #fff3cd;
	color: #8a5a00;
	border: 1px solid #ffe082;
}
html[data-theme='dark'] .ins-badge-region {
	background: #3a2e14;
	color: #e6b95c;
	border-color: #5a4a20;
}

/* ---- подводка перед списком шагов ---- */
.ins-steps-lead {
	margin: 12px 0 8px;
	font-weight: 600;
	color: var(--text-main);
}

/* ---- карточка кнопки-примера ---- */
.ins-btn-sample {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
	padding: 10px 18px;
	background: var(--btn-primary);
	color: #fff;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	box-shadow: 0 4px 14px var(--btn-primary-shadow);
}
.ins-btn-sample-icon {
	font-size: 16px;
	line-height: 1;
}

/* ---- мини-подсказка ---- */
.ins-hint {
	margin: 10px 0;
	padding: 10px 14px;
	border-left: 4px solid #f0a000;
	background: #fff8e1;
	border-radius: 0 8px 8px 0;
	font-size: 13.5px;
	line-height: 1.55;
}
html[data-theme='dark'] .ins-hint {
	background: #3a2e14;
	border-left-color: #e6b95c;
	color: #e8eaf0;
}

/* ---- инлайн-кнопка-иконка внутри текста ---- */
.ins-inline-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: var(--bg-hover);
	border: 1px solid var(--btn-primary);
	color: var(--btn-primary);
	font-size: 13px;
	line-height: 1;
	vertical-align: middle;
	margin: 0 2px;
}

/* ---- заглушка для скриншота ---- */
.ins-shot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 10px 0;
	padding: 22px 16px;
	border: 2px dashed var(--border-color);
	border-radius: 10px;
	background: var(--bg-hover);
	color: var(--text-muted);
	font-size: 12.5px;
	font-style: italic;
	text-align: center;
}
.ins-shot-inline {
	padding: 16px 14px;
	margin: 8px 0 0;
}
.ins-shot-icon {
	font-size: 20px;
	font-style: normal;
	line-height: 1;
	opacity: 0.7;
}
.ins-shot-text {
	font-style: normal;
}

/* ---- нумерованный список шагов ---- */
.ins-ol {
	counter-reset: ins-step;
	list-style: none;
	padding: 0;
	margin: 12px 0 0;
}
.ins-ol > li {
	position: relative;
	padding: 12px 14px 14px 46px;
	margin-bottom: 10px;
	background: var(--bg-hover);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	counter-increment: ins-step;
}
.ins-ol > li::before {
	content: counter(ins-step);
	position: absolute;
	top: 12px;
	left: 12px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--btn-primary);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.ins-li-head {
	font-weight: 600;
	color: var(--text-main);
	margin-bottom: 6px;
	line-height: 1.45;
}

/* ---- маркированный список ---- */
.ins-ul {
	margin: 6px 0 8px;
	padding-left: 20px;
}
.ins-ul li {
	margin: 3px 0;
	line-height: 1.55;
}

/* ---- разделитель ---- */
.ins-divider {
	border: none;
	border-top: 1px dashed var(--border-color);
	margin: 22px 0 18px;
}

/* ---- футер-подсказка ---- */
.ins-footer {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	padding: 12px 14px;
	background: linear-gradient(135deg, #eef3ff 0%, #e3ebff 100%);
	border-radius: 10px;
	border-left: 4px solid var(--btn-primary);
	font-size: 13px;
	color: #3a4a70;
}
.ins-footer-icon {
	font-size: 18px;
	line-height: 1;
	flex-shrink: 0;
}
html[data-theme='dark'] .ins-footer {
	background: linear-gradient(135deg, #1e2440 0%, #1a1d27 100%);
	color: #aab4ff;
}

/* ---- подпись под пример/список команд ---- */
.ins-caption {
	margin: 12px 0 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* ---- терминал-блок с командами ---- */
.ins-cmd {
	margin: 0 0 6px;
	padding: 14px 16px;
	background: #1a1d27;
	border-radius: 10px;
	overflow-x: auto;
	font-size: 12.5px;
	line-height: 1.7;
	color: #aab4ff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	position: relative;
}
.ins-cmd::before {
	content: '';
	position: absolute;
	top: 10px;
	left: 12px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff5f57;
	box-shadow:
		14px 0 0 #febc2e,
		28px 0 0 #28c840;
}
.ins-cmd code {
	display: block;
	padding-top: 14px;
	background: transparent;
	color: #aab4ff;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 12.5px;
	white-space: pre;
	line-height: 1.7;
}

/* в светлой теме — терминал всё равно тёмный (как в шаблонах) */
html[data-theme='light'] .ins-cmd {
	background: #1a1d27;
	color: #aab4ff;
}
html[data-theme='light'] .ins-cmd code {
	color: #aab4ff;
}

/* мобильная адаптация */
@media (max-width: 700px) {
	.ins-cmd {
		padding: 12px 12px 12px;
		font-size: 11.5px;
	}
	.ins-cmd code {
		font-size: 11.5px;
	}
}

/* ==== m442 ==== */
/* ============================================================
   SRE-МОДАЛКА: «Графики для диагностики»
   ============================================================ */
.sre-modal {
	font-size: 14px;
	line-height: 1.55;
	color: var(--a-text, #222);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ---------- шапка ---------- */
.sre-modal-intro {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 18px;
	border-radius: 12px;
	background: linear-gradient(135deg, #eef3ff 0%, #e3ebff 100%);
	border-left: 4px solid #667eea;
}
.sre-modal-intro-icon {
	font-size: 28px;
	line-height: 1;
	flex-shrink: 0;
}
.sre-modal-intro-title {
	font-size: 16px;
	font-weight: 700;
	color: #3a4aa8;
	margin-bottom: 4px;
}
.sre-modal-intro-sub {
	font-size: 13px;
	color: #4a5a8a;
	line-height: 1.5;
}
html[data-theme='dark'] .sre-modal-intro {
	background: linear-gradient(135deg, #1e2440 0%, #1a1d27 100%);
	border-left-color: #667eea;
}
html[data-theme='dark'] .sre-modal-intro-title {
	color: #aab4ff;
}
html[data-theme='dark'] .sre-modal-intro-sub {
	color: #8090c0;
}

/* ---------- блок ---------- */
.sre-block {
	border: 1px solid var(--a-border-mid, #e5e8f0);
	border-radius: 12px;
	background: var(--a-bg-panel, #fff);
	overflow: hidden;
}

.sre-block-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--a-bg-subtle, #f5f7ff);
	border-bottom: 1px solid var(--a-border-soft, #eef0f5);
}

.sre-block-emoji {
	font-size: 20px;
	line-height: 1;
	flex-shrink: 0;
}

.sre-block-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--a-text, #222);
	flex: 1;
}

.sre-block-count {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--a-bg-panel, #fff);
	border: 1px solid var(--a-border-mid, #e5e8f0);
	font-size: 11.5px;
	font-weight: 700;
	color: var(--a-text-muted, #666);
}

.sre-block-lead {
	margin: 12px 14px 0;
	font-size: 13px;
	color: var(--a-text-muted, #666);
}

/* ---------- список ---------- */
.sre-list {
	margin: 10px 14px 16px;
	padding-left: 22px;
	counter-reset: sre-item;
	list-style: none;
}

.sre-list > li {
	position: relative;
	padding: 7px 0 7px 34px;
	border-bottom: 1px dashed var(--a-border-soft, #eef0f5);
	font-size: 13.5px;
	color: var(--a-text, #222);
	counter-increment: sre-item;
	line-height: 1.55;
}
.sre-list > li:last-child {
	border-bottom: none;
}

.sre-list > li::before {
	content: counter(sre-item);
	position: absolute;
	top: 9px;
	left: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--a-primary-bg-soft, #eef3ff);
	color: var(--a-primary, #667eea);
	font-size: 11.5px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

html[data-theme='dark'] .sre-list > li::before {
	background: #1e2440;
	color: #aab4ff;
}

/* ---------- сноски-плашки ---------- */
.sre-note {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	background: var(--a-primary-bg-soft, #eef3ff);
	color: var(--a-primary, #667eea);
	border: 1px solid var(--a-border-mid, #e5e8f0);
	vertical-align: middle;
}

.sre-note-warn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	margin-left: 0;
	white-space: normal;
	background: #fff6e0;
	color: #8a5a00;
	border-color: #f1e0b6;
}
html[data-theme='dark'] .sre-note-warn {
	background: #3a2e14;
	color: #e6b95c;
	border-color: #5a4a20;
}

/* ---------- мобилка ---------- */
@media (max-width: 600px) {
	.sre-modal-intro {
		padding: 12px 14px;
	}
	.sre-modal-intro-icon {
		font-size: 22px;
	}
	.sre-modal-intro-title {
		font-size: 15px;
	}
	.sre-list > li {
		font-size: 13px;
		padding-left: 30px;
	}
	.sre-list > li::before {
		width: 20px;
		height: 20px;
		font-size: 11px;
		top: 8px;
	}
}

