.iyl-root {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99999;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.iyl-open-btn {
	border: 0;
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	background: #00b2ca;
	color: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.iyl-open-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.iyl-root.iyl-open .iyl-open-btn {
	opacity: 0;
	pointer-events: none;
}

.iyl-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.42);
	z-index: 99998;
}

.iyl-panel {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(1240px, calc(100vw - 32px));
	height: calc(100vh - 18px);
	max-height: calc(100vh - 18px);
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 18px 46px rgba(15, 23, 42, 0.28);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.25);
}

.iyl-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 16px 10px;
	border-bottom: 1px solid #eaeaea;
	background: #fff;
}

.iyl-title {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	color: #374151;
}

.iyl-close-btn {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 30px;
	line-height: 1;
	color: #9ca3af;
	padding: 0;
}

.iyl-progress {
	height: 5px;
	background: #f2f4f7;
}

.iyl-progress-bar {
	height: 5px;
	width: 0%;
	background: #00b2ca;
	transition: width 0.25s ease;
}

.iyl-content {
	flex: 1;
	overflow: auto;
	padding: 11px;
	background: #fff;
	display: flex;
}

.iyl-step {
	height: 100%;
	display: flex;
	flex: 1;
}

.iyl-step-grid,
.iyl-step-grid-intro {
	display: grid;
	grid-template-columns: 0.86fr 1.45fr 0.82fr;
	gap: 9px;
	height: 100%;
	align-items: stretch;
	flex: 1;
	min-height: 0;
}

.iyl-col {
	background: #f8fbff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px;
	height: 100%;
	box-sizing: border-box;
}

.iyl-col-info,
.iyl-col-side {
	opacity: 0.86;
}

.iyl-col-options {
	background: #ffffff;
	border-color: #7dd3fc;
	box-shadow: 0 10px 20px rgba(14, 165, 233, 0.15);
	opacity: 1;
}

.iyl-info-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.iyl-visual-badge {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: linear-gradient(135deg, #ecfeff, #dbeafe);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0e7490;
}

.iyl-visual-badge svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.iyl-step-meta {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0891b2;
}

.iyl-step-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.18;
	color: #4b5563;
}

.iyl-step-lead {
	margin: 0 0 8px;
	color: #334155;
	font-size: 13px;
	line-height: 1.4;
}

.iyl-step-learn {
	margin-top: 4px;
}

.iyl-step-learn-title {
	margin: 0 0 5px;
	font-size: 11px;
	font-weight: 700;
	color: #475569;
}

.iyl-step-learn-item {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin-bottom: 5px;
	font-size: 11px;
	line-height: 1.35;
	color: #334155;
}

.iyl-step-learn-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	margin-top: 4px;
	background: linear-gradient(135deg, #06b6d4, #3b82f6);
	flex-shrink: 0;
}

.iyl-highlights-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.iyl-highlight-card {
	background: #fff;
	border: 1px solid #dbeafe;
	border-radius: 11px;
	padding: 9px;
	font-size: 13px;
	line-height: 1.35;
	color: #1f2937;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.iyl-highlight-icon {
	width: 20px;
	height: 20px;
	border-radius: 7px;
	background: linear-gradient(135deg, #ecfeff, #e0e7ff);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0f766e;
	flex-shrink: 0;
}

.iyl-highlight-icon svg {
	width: 11px;
	height: 11px;
	fill: currentColor;
}

.iyl-highlight-text {
	display: block;
}

.iyl-section-label {
	margin: 0 0 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #0e7490;
}

.iyl-question-card {
	background: #f0f9ff;
	border: 2px solid #7dd3fc;
	border-radius: 11px;
	padding: 8px 10px;
	margin-bottom: 8px;
}

.iyl-question {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #1f2937;
	line-height: 1.25;
}

.iyl-options-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
}

.iyl-final-review {
	margin: 0 0 8px;
	padding: 8px 9px;
	border: 1px solid #bae6fd;
	border-radius: 10px;
	background: #f0f9ff;
}

.iyl-final-review-title {
	margin: 0 0 5px;
	font-size: 11px;
	font-weight: 700;
	color: #0c4a6e;
}

.iyl-final-review-text {
	margin: 0;
	font-size: 11px;
	line-height: 1.4;
	color: #334155;
}

.iyl-final-review-cta {
	margin: 6px 0 0;
	font-size: 11px;
	font-weight: 700;
	color: #047857;
}

.iyl-option-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 9px;
	margin: 0;
	border: 1px solid #cbd5e1;
	border-radius: 11px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.iyl-option-card:hover {
	border-color: #38bdf8;
	background: #f8fdff;
}

.iyl-option-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.iyl-option-indicator {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 2px solid #94a3b8;
	background: #fff;
	position: relative;
	flex-shrink: 0;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.iyl-option-card input[type="checkbox"] + .iyl-option-indicator {
	border-radius: 5px;
}

.iyl-option-card input:checked + .iyl-option-indicator {
	border-color: #0284c7;
	background: #0284c7;
}

.iyl-option-card input:checked + .iyl-option-indicator::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 0;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.iyl-option-icon {
	width: 22px;
	height: 22px;
	border-radius: 8px;
	background: linear-gradient(135deg, #f0f9ff, #e0e7ff);
	color: #0ea5e9;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.iyl-option-icon svg {
	width: 11px;
	height: 11px;
	fill: currentColor;
}

.iyl-option-text {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.22;
	color: #374151;
}

.iyl-option-card:has(input:checked) {
	border-color: #07adc6;
	background: #f0fcff;
	box-shadow: 0 7px 16px rgba(6, 182, 212, 0.14);
}

.iyl-side-title {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	color: #1e40af;
}

.iyl-context-wrap {
	margin-top: 0;
}

.iyl-context-title {
	margin: 0 0 5px;
	font-size: 11px;
	font-weight: 600;
	color: #475569;
}

.iyl-context-card {
	background: #eef6ff;
	border: 1px solid #bfdbfe;
	color: #334155;
	border-radius: 9px;
	padding: 6px 7px;
	font-size: 10px;
	line-height: 1.35;
	margin-bottom: 6px;
}

.iyl-note {
	margin-top: 6px;
	font-size: 9px;
	color: #374151;
	background: #fefce8;
	border: 1px solid #fde68a;
	border-radius: 9px;
	padding: 6px 7px;
}

.iyl-trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 4px;
}

.iyl-trust-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #fff;
	border: 1px solid #dbeafe;
	color: #334155;
	border-radius: 999px;
	padding: 3px 6px;
	font-size: 9px;
	line-height: 1;
}

.iyl-trust-chip svg {
	width: 10px;
	height: 10px;
	fill: currentColor;
}

.iyl-legal-inline {
	margin: 6px 0 0;
	font-size: 8.5px;
	line-height: 1.35;
	color: #64748b;
}

.iyl-footer {
	display: flex;
	gap: 8px;
	justify-content: space-between;
	padding: 8px 10px;
	border-top: 1px solid #eaeaea;
	background: #fff;
}

.iyl-btn {
	border: 0;
	border-radius: 12px;
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.iyl-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	filter: grayscale(15%);
}

.iyl-btn-secondary {
	background: #e2e8f0;
	color: #0f172a;
}

.iyl-btn-primary {
	background: #00b2ca;
	color: #fff;
	box-shadow: 0 8px 18px rgba(6, 182, 212, 0.24);
}

.iyl-disclaimer {
	margin: 0;
	padding: 0 10px 6px;
	font-size: 9px;
	color: #64748b;
	line-height: 1.35;
}

body.iyl-lock {
	overflow: hidden;
}

@media (max-width: 900px) {
	.iyl-step-grid,
	.iyl-step-grid-intro {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

@media (max-width: 520px) {
	.iyl-root {
		left: 12px;
		bottom: 12px;
	}

	.iyl-panel {
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		width: 100vw;
		height: 100dvh;
		max-height: none;
		transform: none;
		border-radius: 0;
	}

	.iyl-content {
		overflow: auto;
	}

	.iyl-title {
		font-size: 17px;
	}

	.iyl-step-title {
		font-size: 20px;
	}

	.iyl-step-lead {
		font-size: 13px;
	}

	.iyl-question {
		font-size: 16px;
	}

	.iyl-btn {
		padding: 9px 14px;
		font-size: 14px;
	}
}
