/* ============================================================
   MightyPaint Tools — Color-Blindness Simulator Styles
   Scoped under .mp-color-blindness-tool
   ============================================================ */

.mp-color-blindness-tool {
	--mp-cb-bg: #eef5fc;
	--mp-cb-surface: #ffffff;
	--mp-cb-soft: #f8fbff;
	--mp-cb-ink: #071a3d;
	--mp-cb-text: #10233f;
	--mp-cb-muted: #5f718e;
	--mp-cb-border: #dbe7f4;
	--mp-cb-blue: #1368d8;
	--mp-cb-blue-dark: #0f4fb0;
	--mp-cb-teal: #0f766e;
	--mp-cb-green: #16a34a;
	--mp-cb-orange: #f59e0b;
	--mp-cb-red: #ef4444;
	--mp-cb-purple: #8b5cf6;
	--mp-cb-radius: 14px;
	--mp-cb-radius-lg: 18px;
	--mp-cb-shadow-soft: 0 6px 24px rgba(7, 26, 61, 0.07);
	--mp-cb-shadow-medium: 0 8px 32px rgba(7, 26, 61, 0.10);
	--mp-cb-gap: clamp(18px, 2vw, 28px);

	background: var(--mp-cb-bg);
	padding: clamp(18px, 2vw, 32px) 0 clamp(40px, 4vw, 80px);
	font-size: 17px;
}

.mp-tool-app,
.mp-tool-app *,
.mp-tool-app *::before,
.mp-tool-app *::after {
	box-sizing: border-box;
}

/* ---------- Wide Shell ---------- */
.mp-cb-inner {
	width: min(100% - clamp(24px, 4vw, 96px), 1920px);
	margin-inline: auto;
}

/* ---------- Hero ---------- */
.mp-cb-hero {
	display: block;
	max-width: 900px;
	margin-bottom: clamp(18px, 2vw, 28px);
}

.mp-cb-eyebrow {
	display: inline-block;
	font-size: clamp(0.7rem, 0.75vw, 0.82rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mp-cb-blue);
	background: var(--mp-cb-soft);
	padding: 6px 12px;
	border-radius: 999px;
	margin: 0 0 10px;
}

.mp-cb-hero h1 {
	font-size: clamp(2rem, 3.2vw, 3.6rem);
	font-weight: 900;
	line-height: 1.1;
	color: var(--mp-cb-ink);
	margin: 0 0 10px;
}

.mp-cb-hero p {
	font-size: clamp(1rem, 1.1vw, 1.2rem);
	color: var(--mp-cb-muted);
	line-height: 1.6;
	margin: 0 0 14px;
	max-width: 760px;
}

.mp-cb-trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
}

.mp-cb-trust-row span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: clamp(0.78rem, 0.85vw, 0.9rem);
	color: var(--mp-cb-muted);
}

.mp-cb-trust-row span::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231368d8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	flex-shrink: 0;
}

/* ---------- Decorative Preview Card ---------- */
.mp-cb-preview-card {
	display: none;
}

.mp-cb-preview-title {
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--mp-cb-ink);
	margin: 0 0 8px;
}

.mp-cb-preview-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.mp-cb-preview-block {
	background: var(--mp-cb-soft);
	border: 1px solid var(--mp-cb-border);
	border-radius: var(--mp-cb-radius);
	padding: 10px;
	text-align: center;
}

.mp-cb-preview-block-label {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--mp-cb-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 6px 0 0;
}

.mp-cb-preview-strip {
	height: clamp(40px, 4vw, 60px);
	border-radius: 8px;
	margin-bottom: 6px;
}

.mp-cb-preview-strip.original {
	background: linear-gradient(90deg, #ef4444, #22c55e, #3b82f6, #f59e0b);
}

.mp-cb-preview-strip.simulated {
	background: linear-gradient(90deg, #8b5a3a, #8b8b3a, #6b7db5, #b5a56b);
}

/* ---------- Workbench ---------- */
.mp-cb-workbench {
	display: grid;
	grid-template-columns: minmax(0, 1.9fr) minmax(360px, 0.75fr);
	gap: var(--mp-cb-gap);
	align-items: start;
}

@media (min-width: 1800px) {
	.mp-cb-workbench {
		grid-template-columns: minmax(0, 2fr) minmax(380px, 0.7fr);
	}
}

/* ---------- Panels ---------- */
.mp-cb-panel {
	background: var(--mp-cb-surface);
	border: 1px solid var(--mp-cb-border);
	border-radius: var(--mp-cb-radius-lg);
	box-shadow: var(--mp-cb-shadow-soft);
	padding: clamp(18px, 1.6vw, 28px);
}

.mp-cb-panel-title {
	font-size: clamp(1.15rem, 1.1vw, 1.4rem);
	font-weight: 800;
	color: var(--mp-cb-ink);
	margin: 0 0 18px;
}

/* ---------- Upload Area ---------- */
.mp-cb-upload-zone {
	border: 2px dashed var(--mp-cb-border);
	border-radius: var(--mp-cb-radius);
	padding: clamp(18px, 2vw, 28px);
	text-align: center;
	background: var(--mp-cb-soft);
	margin-bottom: 18px;
	transition: border-color 0.2s, background 0.2s;
}

.mp-cb-upload-zone.is-dragover {
	border-color: var(--mp-cb-blue);
	background: #e7f1ff;
}

.mp-cb-upload-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 10px;
	border: 1.5px solid transparent;
	cursor: pointer;
	background: var(--mp-cb-blue);
	color: #fff;
	margin-bottom: 10px;
	transition: transform 0.08s, box-shadow 0.15s;
}

.mp-cb-upload-btn:hover {
	background: var(--mp-cb-blue-dark);
	box-shadow: 0 4px 12px rgba(19, 104, 216, 0.25);
}

.mp-cb-upload-btn:active {
	transform: translateY(1px);
}

.mp-cb-upload-text {
	font-size: clamp(1rem, 1.1vw, 1.2rem);
	font-weight: 800;
	color: var(--mp-cb-ink);
	margin: 0 0 4px;
}

.mp-cb-upload-hint {
	font-size: clamp(0.98rem, 0.9vw, 1.06rem);
	color: var(--mp-cb-muted);
	margin: 0 0 4px;
	line-height: 1.55;
}

.mp-cb-upload-privacy {
	font-size: clamp(0.98rem, 0.9vw, 1.06rem);
	font-weight: 700;
	color: var(--mp-cb-green);
	margin: 0;
	line-height: 1.55;
}

.mp-cb-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mp-cb-upload-meta {
	font-size: clamp(0.98rem, 0.9vw, 1.06rem);
	color: var(--mp-cb-muted);
	margin-top: 8px;
	line-height: 1.55;
}

@media (min-width: 768px) {
	.mp-cb-upload-zone {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		text-align: left;
		column-gap: 18px;
		padding: 14px 18px;
		margin-bottom: 14px;
	}

	.mp-cb-upload-btn {
		margin-bottom: 0;
		white-space: nowrap;
	}

	.mp-cb-upload-text {
		margin: 0 0 2px;
		font-size: clamp(1rem, 0.95vw, 1.12rem);
	}

	.mp-cb-upload-hint,
	.mp-cb-upload-privacy,
	.mp-cb-upload-meta {
		margin: 0;
		font-size: clamp(0.98rem, 0.9vw, 1.06rem);
		line-height: 1.45;
	}
}

/* ---------- Mode Tabs ---------- */
.mp-cb-mode-label {
	font-size: clamp(0.98rem, 0.9vw, 1.06rem);
	font-weight: 700;
	color: var(--mp-cb-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 10px;
}

.mp-cb-mode-tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 14px;
}

.mp-cb-mode-btn {
	appearance: none;
	border: 1.5px solid var(--mp-cb-border);
	background: var(--mp-cb-surface);
	border-radius: 12px;
	padding: 8px 8px;
	min-height: 54px;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.mp-cb-mode-btn:hover {
	border-color: var(--mp-cb-blue);
}

.mp-cb-mode-btn.is-active {
	border-color: var(--mp-cb-blue);
	background: var(--mp-cb-soft);
	box-shadow: 0 0 0 3px rgba(19, 104, 216, 0.10);
}

.mp-cb-mode-chip {
	width: 18px;
	height: 18px;
	border-radius: 6px;
	margin: 0 auto 4px;
}

.mp-cb-mode-chip.protanopia { background: #ef4444; }
.mp-cb-mode-chip.deuteranopia { background: #22c55e; }
.mp-cb-mode-chip.tritanopia { background: #3b82f6; }
.mp-cb-mode-chip.achromatopsia { background: #9ca3af; }

.mp-cb-mode-btn span {
	display: block;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--mp-cb-ink);
	line-height: 1.2;
}

/* ---------- Preview Area ---------- */
.mp-cb-preview-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(12px, 1.2vw, 18px);
	margin-top: 0;
	margin-bottom: 14px;
}

.mp-cb-preview-panel {
	background: var(--mp-cb-surface);
	border: 1px solid var(--mp-cb-border);
	border-radius: var(--mp-cb-radius);
	padding: clamp(14px, 1vw, 18px);
	overflow: hidden;
}

.mp-cb-preview-panel h3 {
	font-size: clamp(1.12rem, 1.05vw, 1.3rem);
	font-weight: 800;
	color: var(--mp-cb-ink);
	margin: 0 0 4px;
}

.mp-cb-preview-panel p {
	font-size: clamp(0.98rem, 0.9vw, 1.06rem);
	color: var(--mp-cb-muted);
	margin: 0 0 10px;
	line-height: 1.5;
}

.mp-cb-canvas-wrap {
	background: #f1f5f9;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mp-cb-canvas-wrap canvas {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ---------- Actions ---------- */
.mp-cb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.mp-cb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 0.92rem;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 10px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.08s, box-shadow 0.15s, opacity 0.15s;
}

.mp-cb-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.mp-cb-btn-primary {
	background: var(--mp-cb-blue);
	color: #fff;
	border-color: var(--mp-cb-blue);
}

.mp-cb-btn-primary:hover:not(:disabled) {
	background: var(--mp-cb-blue-dark);
	border-color: var(--mp-cb-blue-dark);
	box-shadow: 0 4px 12px rgba(19, 104, 216, 0.25);
}

.mp-cb-btn-secondary {
	background: var(--mp-cb-surface);
	color: var(--mp-cb-ink);
	border-color: var(--mp-cb-border);
}

.mp-cb-btn-secondary:hover:not(:disabled) {
	background: var(--mp-cb-soft);
	color: var(--mp-cb-blue);
	border-color: var(--mp-cb-blue);
}

.mp-cb-tip {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #f0f7ff;
	border: 1px solid #d0e3fa;
	border-radius: 10px;
	padding: 12px 16px;
}

.mp-cb-tip-icon {
	font-size: 1.1rem;
	flex-shrink: 0;
	line-height: 1;
}

.mp-cb-tip p {
	font-size: clamp(0.98rem, 0.9vw, 1.06rem);
	color: var(--mp-cb-muted);
	margin: 0;
	line-height: 1.55;
}

/* ---------- Feedback ---------- */
.mp-cb-feedback {
	font-size: clamp(0.98rem, 0.9vw, 1.06rem);
	font-weight: 700;
	color: #16a34a;
	margin: 8px 0 0;
	text-align: center;
	line-height: 1.55;
}

.mp-cb-feedback.is-error {
	color: #dc2626;
}

/* ---------- Insights Panel ---------- */
.mp-cb-panel-title {
	font-size: clamp(1.35rem, 1.25vw, 1.65rem);
}

.mp-cb-insight-panel .mp-cb-panel-title {
	margin-bottom: 6px;
}

.mp-cb-insight-subtitle {
	font-size: clamp(0.98rem, 0.9vw, 1.06rem);
	color: var(--mp-cb-muted);
	margin: 0 0 18px;
	line-height: 1.55;
}

.mp-cb-active-mode {
	background: var(--mp-cb-soft);
	border: 1px solid var(--mp-cb-border);
	border-radius: var(--mp-cb-radius);
	padding: 18px;
	margin-bottom: 18px;
}

.mp-cb-active-mode-label {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--mp-cb-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 4px;
}

.mp-cb-active-mode-name {
	font-size: clamp(1.65rem, 1.6vw, 2.05rem);
	font-weight: 900;
	color: var(--mp-cb-blue);
	margin: 0 0 4px;
}

.mp-cb-active-mode-desc {
	font-size: clamp(0.98rem, 0.9vw, 1.06rem);
	color: var(--mp-cb-muted);
	margin: 0;
	line-height: 1.55;
}

.mp-cb-insight-heading {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--mp-cb-ink);
	margin: 0 0 10px;
}

.mp-cb-insight-list {
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
}

.mp-cb-insight-list li {
	font-size: clamp(0.98rem, 0.9vw, 1.06rem);
	color: var(--mp-cb-text);
	padding: 12px 14px;
	margin-bottom: 6px;
	background: var(--mp-cb-surface);
	border: 1px solid var(--mp-cb-border);
	border-radius: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 1.55;
}

.mp-cb-insight-list li::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 2px;
	flex-shrink: 0;
}

.mp-cb-insight-list li:nth-child(1)::before { background: var(--mp-cb-red); }
.mp-cb-insight-list li:nth-child(2)::before { background: var(--mp-cb-blue); }
.mp-cb-insight-list li:nth-child(3)::before { background: var(--mp-cb-orange); }
.mp-cb-insight-list li:nth-child(4)::before { background: var(--mp-cb-purple); }
.mp-cb-insight-list li:nth-child(5)::before { background: var(--mp-cb-green); }

.mp-cb-insight-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	font-size: 0.92rem;
	font-weight: 700;
	padding: 12px 18px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	background: var(--mp-cb-blue);
	color: #fff;
	text-decoration: none;
	transition: transform 0.08s, box-shadow 0.15s;
}

.mp-cb-insight-cta:hover {
	background: var(--mp-cb-blue-dark);
	box-shadow: 0 4px 12px rgba(19, 104, 216, 0.25);
}

/* ---------- Content Sections ---------- */
.mp-cb-content {
	margin-top: clamp(32px, 4vw, 56px);
	font-size: 18px;
}

.mp-cb-content h2 {
	font-size: clamp(1.65rem, 1.9vw, 2.35rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
	font-weight: 900;
	color: var(--mp-cb-ink);
	margin: 0 0 18px;
}

.mp-cb-content > * + * {
	margin-top: clamp(28px, 3vw, 48px);
}

.mp-cb-content p,
.mp-cb-highlight-card p,
.mp-cb-step-card p,
.mp-cb-use-card p,
.mp-cb-tip-card p,
.mp-cb-rule-card p,
.mp-cb-room-card p,
.mp-cb-related-card p,
.mp-cb-faq-section p,
.mp-cb-closing p {
	font-size: clamp(1.02rem, 0.95vw, 1.12rem);
	line-height: 1.68;
	color: #43546f;
}

.mp-cb-content h4 {
	font-size: clamp(1.05rem, 1vw, 1.22rem);
	line-height: 1.25;
}

/* Highlight cards */
.mp-cb-highlight-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}

.mp-cb-highlight-card {
	background: var(--mp-cb-surface);
	border: 1px solid var(--mp-cb-border);
	border-radius: var(--mp-cb-radius-lg);
	padding: clamp(18px, 1.35vw, 24px);
	box-shadow: var(--mp-cb-shadow-soft);
	position: relative;
	overflow: hidden;
}

.mp-cb-highlight-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 6px;
	background: var(--mp-cb-blue);
}

.mp-cb-highlight-card:nth-child(2)::before { background: var(--mp-cb-teal); }
.mp-cb-highlight-card:nth-child(3)::before { background: var(--mp-cb-orange); }

.mp-cb-highlight-card h4 {
	font-size: clamp(1.05rem, 1vw, 1.22rem);
	font-weight: 800;
	color: var(--mp-cb-ink);
	margin: 0 0 8px;
}

/* Step cards */
.mp-cb-step-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}

.mp-cb-step-card {
	background: #f8fbff;
	border: 1px solid var(--mp-cb-border);
	border-radius: var(--mp-cb-radius-lg);
	padding: clamp(18px, 1.35vw, 24px);
	box-shadow: var(--mp-cb-shadow-soft);
}

.mp-cb-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--mp-cb-blue);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 800;
	margin-bottom: 10px;
}

.mp-cb-step-card h4 {
	font-size: clamp(1.05rem, 1vw, 1.22rem);
	font-weight: 800;
	color: var(--mp-cb-ink);
	margin: 0 0 6px;
}

/* Use cards */
.mp-cb-use-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}

.mp-cb-use-card {
	background: var(--mp-cb-surface);
	border: 1px solid var(--mp-cb-border);
	border-radius: var(--mp-cb-radius-lg);
	padding: clamp(18px, 1.35vw, 24px);
	box-shadow: var(--mp-cb-shadow-soft);
}

.mp-cb-use-card:nth-child(1) { background: #f0f9f6; border-color: #d0e8e0; }
.mp-cb-use-card:nth-child(2) { background: #f0f5ff; border-color: #d0ddee; }
.mp-cb-use-card:nth-child(3) { background: #fff5f5; border-color: #eed0d0; }

.mp-cb-use-card h4 {
	font-size: clamp(1.05rem, 1vw, 1.22rem);
	font-weight: 800;
	color: var(--mp-cb-ink);
	margin: 0 0 8px;
}

/* Tips */
.mp-cb-tips-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}

.mp-cb-tip-card {
	background: var(--mp-cb-surface);
	border: 1px solid var(--mp-cb-border);
	border-radius: var(--mp-cb-radius);
	padding: clamp(18px, 1.35vw, 24px);
	position: relative;
	overflow: hidden;
}

.mp-cb-tip-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--mp-cb-blue);
}

.mp-cb-tip-card:nth-child(2)::before { background: var(--mp-cb-teal); }
.mp-cb-tip-card:nth-child(3)::before { background: var(--mp-cb-orange); }
.mp-cb-tip-card:nth-child(4)::before { background: var(--mp-cb-purple); }

.mp-cb-tip-card h4 {
	font-size: clamp(1.05rem, 1vw, 1.22rem);
	font-weight: 800;
	color: var(--mp-cb-ink);
	margin: 0 0 4px;
}

/* Mode explanation cards */
.mp-cb-mode-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}

.mp-cb-mode-card {
	background: var(--mp-cb-surface);
	border: 1px solid var(--mp-cb-border);
	border-radius: var(--mp-cb-radius-lg);
	padding: clamp(18px, 1.35vw, 24px);
	box-shadow: var(--mp-cb-shadow-soft);
	position: relative;
	overflow: hidden;
}

.mp-cb-mode-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 6px;
	background: var(--mp-cb-red);
}

.mp-cb-mode-card:nth-child(2)::before { background: var(--mp-cb-green); }
.mp-cb-mode-card:nth-child(3)::before { background: var(--mp-cb-blue); }
.mp-cb-mode-card:nth-child(4)::before { background: var(--mp-cb-muted); }

.mp-cb-mode-card h4 {
	font-size: clamp(1.05rem, 1vw, 1.22rem);
	font-weight: 800;
	color: var(--mp-cb-ink);
	margin: 0 0 4px;
}

.mp-cb-mode-card .mp-cb-mode-sub {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--mp-cb-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 6px;
}

/* CTA Banner */
.mp-cb-cta-banner {
	background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
	border-radius: var(--mp-cb-radius-lg);
	padding: clamp(24px, 3vw, 40px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
}

.mp-cb-cta-banner h3 {
	font-size: clamp(1.3rem, 1.6vw, 1.8rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 6px;
}

.mp-cb-cta-banner p {
	font-size: clamp(1rem, 1.1vw, 1.15rem);
	color: rgba(255,255,255,0.92);
	margin: 0;
	max-width: 520px;
}

.mp-cb-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: var(--mp-cb-blue);
	font-size: 0.92rem;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 10px;
	text-decoration: none;
	transition: transform 0.08s, box-shadow 0.15s;
	flex-shrink: 0;
}

.mp-cb-cta-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Related tools */
.mp-cb-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}

.mp-cb-related-card {
	display: flex;
	flex-direction: column;
	background: linear-gradient(135deg, #ffffff, #f5f9ff);
	border: 1px solid var(--mp-cb-border);
	border-radius: var(--mp-cb-radius-lg);
	padding: clamp(18px, 1.35vw, 24px);
	box-shadow: var(--mp-cb-shadow-soft);
	text-decoration: none;
	color: inherit;
	transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
	min-height: 190px;
}

.mp-cb-related-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--mp-cb-shadow-medium);
	border-color: var(--mp-cb-blue);
}

.mp-cb-related-chips {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
}

.mp-cb-related-chip {
	width: 22px;
	height: 22px;
	border-radius: 6px;
}

.mp-cb-related-card h4 {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--mp-cb-ink);
	margin: 0 0 6px;
}

.mp-cb-related-arrow {
	margin-top: auto;
	display: inline-flex;
	width: fit-content;
	padding: 7px 12px;
	border-radius: 999px;
	background: #e7f1ff;
	color: #2563eb;
	font-weight: 800;
	font-size: 0.85rem;
}

.mp-cb-related-card:hover .mp-cb-related-arrow {
	background: #2563eb;
	color: #ffffff;
}

/* FAQ */
.mp-cb-faq-grid {
	display: grid;
	gap: 10px;
}

.mp-cb-faq-section .mp-cb-faq-item {
	background: var(--mp-cb-surface);
	border: 1px solid var(--mp-cb-border);
	border-radius: var(--mp-cb-radius);
	box-shadow: var(--mp-cb-shadow-soft);
	overflow: hidden;
}

.mp-cb-faq-section summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--mp-cb-ink);
}

.mp-cb-faq-section summary::-webkit-details-marker {
	display: none;
}

.mp-cb-faq-q {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--mp-cb-soft);
	color: var(--mp-cb-blue);
	font-size: 0.8rem;
	font-weight: 800;
	flex-shrink: 0;
}

.mp-cb-faq-section .mp-cb-faq-item p {
	padding: 0 20px 18px 54px;
	margin: 0;
	font-size: clamp(1.02rem, 0.95vw, 1.12rem);
	color: #43546f;
	line-height: 1.68;
}

.mp-cb-faq-section details[open] {
	border-color: #bcd4f2;
	background: #ffffff;
}

/* Closing */
.mp-cb-closing {
	background: var(--mp-cb-surface);
	border: 1px solid var(--mp-cb-border);
	border-radius: var(--mp-cb-radius-lg);
	padding: clamp(22px, 2vw, 34px);
	text-align: center;
	box-shadow: var(--mp-cb-shadow-soft);
}

.mp-cb-closing p {
	font-size: clamp(1rem, 1.1vw, 1.15rem);
	color: #43546f;
	line-height: 1.68;
	margin: 0 auto;
	max-width: 700px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.mp-cb-hero {
		grid-template-columns: 1fr;
	}

	.mp-cb-preview-card {
		order: -1;
	}

	.mp-cb-workbench {
		grid-template-columns: 1fr;
	}

	.mp-cb-mode-tabs {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.mp-cb-hero {
		display: block;
		margin-bottom: 16px;
	}

	.mp-cb-preview-card {
		display: none;
	}

	.mp-cb-hero h1 {
		font-size: clamp(2.15rem, 10vw, 3rem);
		line-height: 1.04;
		margin-bottom: 10px;
	}

	.mp-cb-hero p {
		font-size: 1.05rem;
		line-height: 1.55;
		margin-bottom: 14px;
	}

	.mp-cb-eyebrow {
		margin-bottom: 10px;
	}

	.mp-cb-trust-row {
		gap: 8px 14px;
		margin-bottom: 0;
	}

	.mp-color-blindness-tool {
		padding-top: 18px;
	}

	.mp-cb-inner {
		width: min(100% - 24px, 100%);
	}

	.mp-cb-workbench {
		gap: 18px;
	}

	.mp-cb-panel {
		padding: 18px;
		border-radius: 18px;
	}

	.mp-cb-panel-title {
		margin-bottom: 14px;
	}

	.mp-cb-upload-zone {
		padding: 16px;
		margin-bottom: 14px;
	}

	.mp-cb-mode-tabs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mp-cb-preview-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.mp-cb-actions {
		flex-direction: column;
	}

	.mp-cb-actions .mp-cb-btn {
		width: 100%;
	}

	.mp-cb-cta-banner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 430px) {
	.mp-cb-mode-tabs {
		grid-template-columns: repeat(2, 1fr);
	}
}
