/* ============================================================
   MightyPaint Tools — Interactive HTML Color Picker Styles
   Scoped under .mp-html-picker-tool
   ============================================================ */

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

	background: var(--mp-picker-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-html-picker-inner {
	width: min(100% - clamp(24px, 4vw, 96px), 1920px);
	margin-inline: auto;
}

/* ---------- Hero ---------- */
.mp-html-picker-hero {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(24px, 3vw, 48px);
	align-items: center;
	margin-bottom: clamp(18px, 2vw, 28px);
}

.mp-html-picker-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-picker-blue);
	background: var(--mp-picker-soft);
	padding: 6px 12px;
	border-radius: 999px;
	margin: 0 0 10px;
}

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

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

.mp-html-picker-trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.mp-html-picker-trust-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: clamp(0.78rem, 0.85vw, 0.9rem);
	font-weight: 600;
	color: var(--mp-picker-muted);
	background: var(--mp-picker-surface);
	border: 1px solid var(--mp-picker-border);
	padding: 5px 12px;
	border-radius: 999px;
}

/* ---------- Decorative Preview Card ---------- */
.mp-html-picker-preview-card {
	background: var(--mp-picker-surface);
	border-radius: var(--mp-picker-radius-lg);
	box-shadow: var(--mp-picker-shadow-medium);
	border: 1px solid var(--mp-picker-border);
	padding: clamp(16px, 1.5vw, 24px);
	overflow: hidden;
}

.mp-html-picker-preview-title {
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--mp-picker-ink);
	margin: 0 0 12px;
}

.mp-html-picker-hero-gradient {
	position: relative;
	display: block;
	width: 100%;
	min-height: 48px;
	border-radius: 12px;
	cursor: pointer;
	padding: 0;
}

/* Force gradient on all states — overrides theme button:hover rules */
.mp-html-picker-tool .mp-html-picker-hero-gradient,
.mp-html-picker-tool .mp-html-picker-hero-gradient:hover,
.mp-html-picker-tool .mp-html-picker-hero-gradient:focus,
.mp-html-picker-tool .mp-html-picker-hero-gradient:active {
	appearance: none;
	-webkit-appearance: none;
	background: linear-gradient(
		90deg,
		#ff0000 0%,
		#ffff00 16.66%,
		#00ff00 33.33%,
		#00ffff 50%,
		#0000ff 66.66%,
		#ff00ff 83.33%,
		#ff0000 100%
	) !important;
	color: transparent !important;
	border: 0 !important;
	box-shadow: inset 0 0 0 1px rgba(7, 26, 61, 0.08) !important;
}

.mp-html-picker-tool .mp-html-picker-hero-gradient:focus-visible {
	outline: 3px solid rgba(19, 104, 216, 0.35);
	outline-offset: 3px;
}

.mp-html-picker-hero-selector {
	position: absolute;
	top: 50%;
	left: var(--mp-picker-hero-hue-position, 40%);
	width: 22px;
	height: 22px;
	border-radius: 999px;
	transform: translate(-50%, -50%);
	background: var(--mp-picker-current-color, #3CB371);
	border: 3px solid #ffffff;
	box-shadow: 0 0 0 2px #071a3d, 0 8px 18px rgba(7, 26, 61, 0.2);
	pointer-events: none;
}

.mp-html-picker-hero-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.mp-html-picker-hero-swatch {
	appearance: none;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	border: 1px solid var(--mp-picker-border);
	cursor: pointer;
	padding: 0;
	background: var(--mp-hero-swatch-color, #3CB371);
}

/* Per-swatch color via data-attribute — avoids needing inline style in PHP */
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#EF4444"],
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#ef4444"] { --mp-hero-swatch-color: #ef4444; }
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#F59E0B"],
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#f59e0b"] { --mp-hero-swatch-color: #f59e0b; }
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#16A34A"],
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#16a34a"] { --mp-hero-swatch-color: #16a34a; }
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#3B82F6"],
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#3b82f6"] { --mp-hero-swatch-color: #3b82f6; }
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#8B5CF6"],
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#8b5cf6"] { --mp-hero-swatch-color: #8b5cf6; }
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#EC4899"],
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#ec4899"] { --mp-hero-swatch-color: #ec4899; }
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#071A3D"],
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#071a3d"] { --mp-hero-swatch-color: #071a3d; }
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#FFFFFF"],
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#ffffff"] { --mp-hero-swatch-color: #ffffff; }

/* Force swatch background on all states — overrides theme button:hover rules */
.mp-html-picker-tool .mp-html-picker-hero-swatch,
.mp-html-picker-tool .mp-html-picker-hero-swatch:hover,
.mp-html-picker-tool .mp-html-picker-hero-swatch:focus,
.mp-html-picker-tool .mp-html-picker-hero-swatch:active {
	background: var(--mp-hero-swatch-color) !important;
	border: 1px solid var(--mp-picker-border) !important;
}

/* White swatch needs a visible border */
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#FFFFFF"],
.mp-html-picker-tool .mp-html-picker-hero-swatch[data-hero-color="#ffffff"] {
	border-color: #c8d6e6 !important;
	box-shadow: inset 0 0 0 1px rgba(7, 26, 61, 0.08);
}

.mp-html-picker-hero-swatch:hover,
.mp-html-picker-hero-swatch:focus-visible {
	outline: 3px solid rgba(19, 104, 216, 0.35);
	outline-offset: 2px;
}

.mp-html-picker-hero-pill {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	margin-top: 12px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #eaf3ff;
	color: var(--mp-picker-blue);
	font-weight: 900;
	font-size: 0.85rem;
}

.mp-html-picker-hero-hex {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ---------- Workbench ---------- */
.mp-html-picker-workbench {
	display: grid;
	grid-template-columns: minmax(0, 1.8fr) minmax(360px, 0.85fr);
	gap: var(--mp-picker-gap);
	align-items: start;
	margin-top: clamp(14px, 1.5vw, 22px);
}

@media (min-width: 1800px) {
	.mp-html-picker-workbench {
		grid-template-columns: minmax(0, 1.9fr) minmax(380px, 0.8fr);
	}
}

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

.mp-html-picker-panel-title {
	font-size: clamp(1.35rem, 1.25vw, 1.65rem);
	font-weight: 800;
	color: var(--mp-picker-ink);
	margin: 0 0 6px;
}

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

/* ---------- Cards ---------- */
.mp-html-picker-card {
	background: var(--mp-picker-soft);
	border: 1px solid var(--mp-picker-border);
	border-radius: var(--mp-picker-radius);
	padding: clamp(14px, 1.1vw, 18px);
	margin-bottom: 14px;
}

.mp-html-picker-card-title {
	font-size: clamp(0.98rem, 0.92vw, 1.06rem);
	font-weight: 700;
	color: var(--mp-picker-ink);
	margin: 0 0 10px;
}

.mp-html-picker-helper {
	font-size: clamp(0.9rem, 0.85vw, 0.98rem);
	color: var(--mp-picker-muted);
	margin: 8px 0 0;
	line-height: 1.5;
}

/* ---------- Inputs ---------- */
.mp-html-picker-input-row {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.mp-html-picker-native-picker {
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--mp-picker-border);
	border-radius: 10px;
	cursor: pointer;
	background: none;
	flex-shrink: 0;
}

.mp-html-picker-hex-input {
	flex: 1 1 auto;
	min-width: 0;
	font-size: clamp(1rem, 0.95vw, 1.12rem);
	font-weight: 600;
	color: var(--mp-picker-ink);
	background: #fff;
	border: 1px solid var(--mp-picker-border);
	border-radius: 10px;
	padding: 10px 14px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mp-html-picker-hex-input:focus {
	outline: none;
	border-color: var(--mp-picker-blue);
	box-shadow: 0 0 0 3px rgba(19, 104, 216, 0.12);
}

.mp-html-picker-hex-input.is-error {
	border-color: var(--mp-picker-red);
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.mp-html-picker-inline-error {
	font-size: clamp(0.9rem, 0.85vw, 0.98rem);
	color: var(--mp-picker-red);
	margin: 6px 0 0;
	font-weight: 700;
}

/* ---------- Buttons ---------- */
.mp-html-picker-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;
}

.mp-html-picker-btn:active {
	transform: translateY(1px);
}

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

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

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

.mp-html-picker-btn-secondary:hover {
	background: var(--mp-picker-soft);
	color: var(--mp-picker-blue);
	border-color: var(--mp-picker-blue);
}

.mp-html-picker-btn-ghost {
	background: transparent;
	color: var(--mp-picker-blue);
	border-color: var(--mp-picker-border);
}

.mp-html-picker-btn-ghost:hover {
	background: var(--mp-picker-soft);
	border-color: var(--mp-picker-blue);
}

/* ---------- Sliders ---------- */
.mp-html-picker-sliders-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.mp-html-picker-slider-card {
	background: var(--mp-picker-surface);
	border: 1px solid var(--mp-picker-border);
	border-radius: var(--mp-picker-radius);
	padding: 12px 14px;
}

.mp-html-picker-slider-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.mp-html-picker-slider-label span {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--mp-picker-ink);
}

.mp-html-picker-slider-value {
	font-size: clamp(1rem, 0.95vw, 1.12rem);
	font-weight: 800;
	color: var(--mp-picker-blue);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mp-html-picker-slider {
	width: 100%;
	height: 8px;
	border-radius: 999px;
	background: var(--mp-picker-border);
	appearance: none;
	cursor: pointer;
	margin: 0;
}

.mp-html-picker-slider::-webkit-slider-thumb {
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--mp-picker-blue);
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	cursor: pointer;
}

.mp-html-picker-slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--mp-picker-blue);
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	cursor: pointer;
}

/* ---------- Swatch Grid ---------- */
.mp-html-picker-swatch-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 6px;
}

.mp-html-picker-swatch-button {
	appearance: none;
	border: 2px solid transparent;
	border-radius: 8px;
	min-height: 44px;
	cursor: pointer;
	padding: 0;
	transition: transform 0.08s, box-shadow 0.15s, border-color 0.15s;
}

.mp-html-picker-swatch-button:hover {
	transform: scale(1.04);
	box-shadow: 0 2px 8px rgba(0,0,0,0.12);
	z-index: 1;
}

.mp-html-picker-swatch-button.is-active {
	border-color: var(--mp-picker-blue);
	box-shadow: 0 0 0 3px rgba(19, 104, 216, 0.2);
	transform: scale(1.04);
	z-index: 2;
}

/* ---------- Recent Picks ---------- */
.mp-html-picker-recent-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mp-html-picker-recent-btn {
	appearance: none;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	padding: 0;
	transition: transform 0.08s, border-color 0.15s;
}

.mp-html-picker-recent-btn:hover {
	transform: scale(1.08);
	border-color: var(--mp-picker-blue);
}

/* ---------- Big Swatch ---------- */
.mp-html-picker-big-swatch {
	border-radius: var(--mp-picker-radius);
	padding: 22px;
	margin-bottom: 14px;
	position: relative;
	min-height: 150px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.mp-html-picker-big-swatch-hex {
	font-size: clamp(1.6rem, 1.8vw, 2.2rem);
	font-weight: 900;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	margin: 0 0 2px;
	line-height: 1.1;
}

.mp-html-picker-big-swatch-name {
	font-size: clamp(1rem, 1.05vw, 1.2rem);
	font-weight: 700;
	margin: 0 0 10px;
}

.mp-html-picker-big-swatch-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mp-html-picker-big-swatch-chip {
	font-size: 0.82rem;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 8px;
	background: rgba(255,255,255,0.2);
	backdrop-filter: blur(4px);
}

/* ---------- Output Rows ---------- */
.mp-html-picker-output-rows {
	display: grid;
	gap: 8px;
	margin-bottom: 14px;
}

.mp-html-picker-output-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--mp-picker-border);
	border-radius: 12px;
	background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.mp-html-picker-output-badge {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 32px;
	padding: 0 8px;
	border-radius: 8px;
	background: #eaf3ff;
	color: var(--mp-picker-blue);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.mp-html-picker-output-value {
	font-size: clamp(0.95rem, 0.9vw, 1.05rem);
	font-weight: 600;
	color: var(--mp-picker-ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	overflow-wrap: anywhere;
}

.mp-html-picker-output-copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid var(--mp-picker-border);
	background: var(--mp-picker-surface);
	color: var(--mp-picker-muted);
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.mp-html-picker-output-copy:hover {
	background: var(--mp-picker-soft);
	color: var(--mp-picker-blue);
	border-color: var(--mp-picker-blue);
}

/* ---------- Code Block ---------- */
.mp-html-picker-code-block {
	position: relative;
	background: #071a3d !important;
	border-radius: var(--mp-picker-radius);
	padding: 16px;
	margin-bottom: 14px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.12);
}

.mp-html-picker-code-block pre,
.mp-html-picker-code-block code,
.mp-html-picker-code-block pre *,
.mp-html-picker-code-block code * {
	color: #eaf3ff !important;
	background: transparent !important;
	text-shadow: none !important;
	opacity: 1 !important;
	-webkit-text-fill-color: #eaf3ff !important;
}

.mp-html-picker-code-block pre {
	margin: 0;
	font-size: clamp(0.85rem, 0.8vw, 0.95rem);
	line-height: 1.6;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	white-space: pre;
	overflow-x: auto;
	max-width: 100%;
}

.mp-html-picker-code-copy {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,0.15);
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.8);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mp-html-picker-code-copy:hover {
	background: rgba(255,255,255,0.15);
	color: #fff;
}

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

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

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

.mp-html-picker-content h2 {
	font-size: clamp(1.55rem, 1.7vw, 2.2rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-weight: 900;
	color: var(--mp-picker-ink);
	margin: 0 0 18px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.mp-html-picker-use-card:nth-child(1) { background: #f0f9f6; border-color: #d0e8e0; }
.mp-html-picker-use-card:nth-child(2) { background: #f0f5ff; border-color: #d0ddee; }
.mp-html-picker-use-card:nth-child(3) { background: #fff5f5; border-color: #eed0d0; }
.mp-html-picker-use-card:nth-child(4) { background: #fff8f0; border-color: #eedcc0; }
.mp-html-picker-use-card:nth-child(5) { background: #f0f9ff; border-color: #d0e0ee; }
.mp-html-picker-use-card:nth-child(6) { background: #f5f0ff; border-color: #ddd0ee; }

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

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

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

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

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

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

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

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

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

.mp-html-picker-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: var(--mp-picker-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-html-picker-cta-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

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

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

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

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

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

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

.mp-html-picker-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-html-picker-related-card:hover .mp-html-picker-related-arrow {
	background: #2563eb;
	color: #ffffff;
}

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

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

.mp-html-picker-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-picker-ink);
}

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

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

.mp-html-picker-faq-section .mp-html-picker-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-html-picker-faq-section details[open] {
	border-color: #bcd4f2;
	background: #ffffff;
}

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

.mp-html-picker-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-html-picker-workbench {
		grid-template-columns: 1fr;
	}

	.mp-html-picker-sliders-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.mp-html-picker-preview-card {
		display: none !important;
	}

	.mp-html-picker-hero {
		display: block;
		margin-bottom: 16px;
	}

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

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

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

	.mp-html-picker-trust-row {
		gap: 8px 10px;
		margin-bottom: 0;
	}

	.mp-html-picker-tool {
		padding-top: 18px;
	}

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

	.mp-html-picker-workbench {
		gap: 18px;
	}

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

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

	.mp-html-picker-sliders-grid {
		grid-template-columns: 1fr;
	}

	.mp-html-picker-swatch-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.mp-html-picker-swatch-button {
		min-height: 52px;
	}

	.mp-html-picker-output-panel {
		order: 2;
	}

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