/* Quick Variable Products — premium admin UI (design system v2) */
.qvp-wrap {
	--qvp-accent: #7c3aed;
	--qvp-accent-2: #4f46e5;
	--qvp-accent-soft: #ede9fe;
	--qvp-ink: #17153a;
	--qvp-mut: #6f6c8f;
	--qvp-line: #e8e6f6;
	--qvp-line-soft: #f0eefa;
	--qvp-bg: #f7f6fe;
	--qvp-field: #fbfbfe;
	--qvp-field-border: #dcd9f0;
	--qvp-radius: 16px;
	--qvp-radius-sm: 10px;
	--qvp-shadow-card: 0 1px 2px rgba(23, 15, 60, .05), 0 18px 44px -28px rgba(23, 15, 60, .25);
	margin-right: 20px;
	-webkit-font-smoothing: antialiased;
}
.qvp-app { max-width: 980px; }
.qvp-app * { box-sizing: border-box; }

/* ── Entrance motion (subtle, disabled for reduced-motion users) ── */
@keyframes qvpIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes qvpRow { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes qvpToast { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes qvpFloat { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
.qvp-app > * { animation: qvpIn .4s cubic-bezier(.22, .8, .36, 1) both; }
.qvp-app > *:nth-child(2) { animation-delay: .05s; }
.qvp-app > *:nth-child(3) { animation-delay: .1s; }
.qvp-app > *:nth-child(4) { animation-delay: .15s; }
.qvp-app > *:nth-child(n+5) { animation-delay: .2s; }

/* ── Hero ── */
.qvp-hero {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; align-items: center; gap: 18px;
	background:
		radial-gradient(680px 240px at 88% -40%, rgba(167, 139, 250, .55), transparent 60%),
		radial-gradient(520px 260px at -8% 130%, rgba(99, 102, 241, .5), transparent 60%),
		linear-gradient(120deg, #2e1065 0%, #5b21b6 48%, #4f46e5 100%);
	color: #fff; border-radius: var(--qvp-radius);
	padding: 26px 28px; margin: 14px 0 22px;
	box-shadow: 0 20px 44px -18px rgba(76, 29, 149, .55), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.qvp-hero::before {
	/* faint dot grid for texture */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
	mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
	opacity: .5;
}
.qvp-hero-icon {
	width: 58px; height: 58px; flex: none; border-radius: 16px; font-size: 28px;
	background: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .1));
	backdrop-filter: blur(6px);
	display: flex; align-items: center; justify-content: center;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 10px 22px -8px rgba(0, 0, 0, .35);
	animation: qvpFloat 3.2s ease-in-out infinite alternate;
}
.qvp-hero-txt { flex: 1; }
.qvp-hero-txt h1 { margin: 0; color: #fff; font-size: 23px; font-weight: 800; letter-spacing: -.02em; padding: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.qvp-hero-txt p { margin: 5px 0 0; color: rgba(255, 255, 255, .82); font-size: 13px; letter-spacing: .01em; }
.qvp-steps { display: flex; gap: 7px; flex-wrap: wrap; }
.qvp-steps span {
	display: inline-flex; align-items: center; gap: 7px;
	background: rgba(255, 255, 255, .13); color: #fff; padding: 7px 13px; border-radius: 999px;
	font-size: 12px; font-weight: 600; letter-spacing: .01em;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
	backdrop-filter: blur(4px); transition: background .2s;
}
.qvp-steps span:hover { background: rgba(255, 255, 255, .22); }
.qvp-steps b { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #5b21b6; font-size: 11px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }

/* ── Cards ── */
.qvp-card {
	background: #fff; border: 1px solid var(--qvp-line); border-radius: var(--qvp-radius);
	padding: 22px 24px; margin-bottom: 18px;
	box-shadow: var(--qvp-shadow-card);
}
.qvp-card-t { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 15px; letter-spacing: -.01em; color: var(--qvp-ink); margin-bottom: 16px; }
.qvp-card-t .qvp-mut { font-weight: 400; color: var(--qvp-mut); font-size: 12px; }
.qvp-card-t .qvp-ic, .qvp-acc > summary .qvp-ic {
	width: 30px; height: 30px; flex: none; border-radius: 9px; font-size: 15px;
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #ede9fe, #e0e7ff);
	box-shadow: inset 0 0 0 1px #ddd6fe, 0 2px 6px -2px rgba(109, 40, 217, .35);
}

/* Numbered step badge in card titles */
.qvp-step {
	width: 27px; height: 27px; flex: none; border-radius: 9px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 800; color: #fff;
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
	box-shadow: 0 6px 14px -6px rgba(109, 40, 217, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* Variations = the star of the screen: gradient border + soft glow */
.qvp-star {
	border: 2px solid transparent;
	background:
		linear-gradient(180deg, #fdfcff, #fff) padding-box,
		linear-gradient(120deg, #c4b5fd, #a5b4fc 55%, #c4b5fd) border-box;
	box-shadow: 0 22px 50px -26px rgba(109, 40, 217, .55), 0 1px 2px rgba(23, 15, 60, .05);
}
.qvp-star-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.qvp-star-head .qvp-card-t { margin-bottom: 0; }
.qvp-star-badge {
	margin-left: auto; background: linear-gradient(120deg, #7c3aed, #4f46e5); color: #fff;
	font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 999px; letter-spacing: .3px;
	box-shadow: 0 8px 18px -8px rgba(109, 40, 217, .8), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.qvp-star-lede { margin: 0 0 14px; color: var(--qvp-mut); font-size: 13px; line-height: 1.55; }
.qvp-btn-primary.qvp-gen { padding: 11px 22px; font-size: 13px; }

/* ── Collapsible accordions (optional details) ── */
.qvp-acc { background: #fff; border: 1px solid var(--qvp-line); border-radius: 13px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(23, 15, 60, .04); transition: box-shadow .2s, border-color .2s; }
.qvp-acc:hover { border-color: #d9d5f2; }
.qvp-acc[open] { box-shadow: var(--qvp-shadow-card); }
.qvp-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 15px 18px; font-weight: 700; font-size: 14px; color: var(--qvp-ink); user-select: none; }
.qvp-acc > summary::-webkit-details-marker { display: none; }
.qvp-acc > summary::after {
	content: ""; margin-left: auto; width: 8px; height: 8px; flex: none;
	border-right: 2px solid #9a97b8; border-bottom: 2px solid #9a97b8;
	transform: rotate(-45deg); transition: transform .22s;
}
.qvp-acc[open] > summary::after { transform: rotate(45deg); }
.qvp-acc > summary:hover { background: var(--qvp-bg); }
.qvp-acc-hint { margin-left: 8px; font-weight: 400; font-size: 12px; color: var(--qvp-mut); }
.qvp-acc-body { padding: 8px 18px 18px; border-top: 1px solid var(--qvp-line-soft); }

/* ── Form grid + fields ── */
.qvp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; }
.qvp-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 650; color: #3b3860; letter-spacing: .01em; }
.qvp-grid .qvp-col-2 { grid-column: 1 / -1; }
/* The money row: regular / sale / cost sit together, three across. */
.qvp-grid .qvp-triple { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px 18px; }
.qvp-grid .qvp-cur { color: var(--qvp-mut); font-weight: 500; }
.qvp-block { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 650; color: #3b3860; margin-bottom: 12px; }

.qvp-wrap input[type="text"],
.qvp-wrap input[type="number"],
.qvp-wrap select,
.qvp-wrap textarea {
	width: 100%; padding: 10px 13px; border: 1px solid var(--qvp-field-border); border-radius: var(--qvp-radius-sm);
	background: var(--qvp-field); font-size: 13px; color: var(--qvp-ink); box-shadow: 0 1px 2px rgba(23, 15, 60, .03) inset;
	min-height: 40px; font-family: inherit; line-height: 1.45;
	transition: border-color .18s, box-shadow .18s, background .18s;
}
/* Scoped to text-like fields ONLY: a generic input:focus would repaint checkboxes white and
   hide WP's white check mark while the box is focused (tick "appears" only after blurring). */
.qvp-wrap input[type="text"]:hover, .qvp-wrap input[type="number"]:hover, .qvp-wrap select:hover, .qvp-wrap textarea:hover { border-color: #c8c4ec; }
.qvp-wrap input[type="text"]:focus, .qvp-wrap input[type="number"]:focus, .qvp-wrap select:focus, .qvp-wrap textarea:focus {
	border-color: var(--qvp-accent-2); outline: none; background: #fff;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}
/* Checkboxes keep their native checked paint; keyboard users still get a visible ring. */
.qvp-wrap input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(99, 102, 241, .25); }
.qvp-wrap select[multiple] { padding: 6px; min-height: 122px; }
.qvp-wrap select[multiple] option { padding: 6px 9px; border-radius: 6px; }
.qvp-wrap ::placeholder { color: #6f6b8f; }
.qvp-wrap [aria-invalid="true"] { border-color: #b91c1c !important; box-shadow: 0 0 0 3px rgba(185, 28, 28, .14) !important; }

.qvp-dims { display: flex; gap: 8px; }
.qvp-dims input { width: 100%; }
.qvp-checks { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; padding-top: 2px; }
.qvp-inline { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; color: #3b3860; }
.qvp-wrap input[type="checkbox"] { accent-color: var(--qvp-accent); width: 16px; height: 16px; }

/* Description rich-editor toggle */
.qvp-block-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; font-weight: 650; color: #3b3860; }
.qvp-linkbtn { background: none; border: none; color: var(--qvp-accent-2); cursor: pointer; font-size: 12px; font-weight: 600; padding: 0; transition: color .15s; }
.qvp-linkbtn:hover { color: var(--qvp-accent); }
.qvp-linkbtn.is-on { color: #b3261e; }
.qvp-draft { margin-left: 16px; color: #3b3860; }

/* ── Media ── */
.qvp-mediarow { display: flex; gap: 22px; align-items: flex-start; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--qvp-line); }
.qvp-media-unit { display: flex; flex-direction: column; gap: 8px; }
.qvp-media-unit.qvp-media-grow { flex: 1; align-items: flex-start; }
.qvp-media-lbl { font-size: 12px; font-weight: 700; color: #3b3860; }
.qvp-media-lbl small { font-weight: 400; color: var(--qvp-mut); font-size: 11px; margin-left: 6px; }
.qvp-cover-sm { width: 96px; height: 96px; flex: none; }
.qvp-btn-ghost.qvp-mini { padding: 7px 12px; font-size: 12px; }

.qvp-media { display: flex; gap: 26px; flex-wrap: wrap; }
.qvp-media-col { display: flex; flex-direction: column; gap: 10px; }
.qvp-media-grow { flex: 1; min-width: 240px; }
.qvp-media-h { font-size: 12px; font-weight: 700; color: #3b3860; }

.qvp-cover {
	width: 132px; height: 132px; border-radius: 13px; cursor: pointer; position: relative;
	border: 2px dashed #cfcaec; background: var(--qvp-bg);
	display: flex; align-items: center; justify-content: center; overflow: hidden;
	transition: border-color .18s, box-shadow .18s, transform .18s;
}
.qvp-cover:hover { border-color: var(--qvp-accent); box-shadow: 0 8px 20px -10px rgba(109, 40, 217, .4); transform: translateY(-1px); }
.qvp-cover:focus-visible, .qvp-vimg-box:focus-visible, .qvp-gthumb:focus-visible { outline: 3px solid #4f46e5; outline-offset: 3px; }
.qvp-cover.has { border-style: solid; border-color: var(--qvp-line); }
.qvp-cover .qvp-cover-ph { font-size: 30px; color: #a7a3c7; }
.qvp-cover img { width: 100%; height: 100%; object-fit: cover; }

.qvp-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.qvp-gthumb { width: 78px; height: 78px; border-radius: 11px; overflow: hidden; position: relative; border: 1px solid var(--qvp-line); background: #fff; cursor: grab; transition: transform .15s, box-shadow .15s; }
.qvp-gthumb:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(23, 15, 60, .35); }
.qvp-gthumb:active { cursor: grabbing; }
.qvp-gthumb.dragging { opacity: .4; }
.qvp-gthumb.drop-target { outline: 2px dashed var(--qvp-accent); outline-offset: 2px; }
.qvp-gthumb img { width: 100%; height: 100%; object-fit: cover; }

.qvp-x {
	position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; line-height: 26px;
	border: none; border-radius: 50%; background: rgba(17, 12, 34, .72); color: #fff;
	font-size: 14px; cursor: pointer; padding: 0; text-align: center; backdrop-filter: blur(3px);
	transition: background .15s, transform .15s;
}
.qvp-x:hover { background: #b3261e; transform: scale(1.08); }

/* ── Axes ── */
.qvp-axis { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.qvp-axis .qvp-axis-attr { min-width: 210px; flex: none; }
.qvp-axis .qvp-axis-vals { flex: 1; }
.qvp-axis-del { color: #b3261e; background: none; border: none; cursor: pointer; font-size: 12px; padding: 6px; border-radius: 7px; transition: background .15s; }
.qvp-axis-del:hover { background: #fdeceb; }
.qvp-axis-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; align-items: center; }

/* ── Buttons ── */
.qvp-btn-primary, .qvp-btn-secondary, .qvp-btn-ghost {
	font-size: 13px; font-weight: 650; border-radius: 11px; cursor: pointer; border: 1px solid transparent;
	padding: 10px 18px; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; line-height: 1.2;
	letter-spacing: .01em;
}
.qvp-btn-primary {
	position: relative; overflow: hidden;
	background: linear-gradient(120deg, #7c3aed, #4f46e5); color: #fff; padding: 13px 27px; font-size: 14px;
	box-shadow: 0 12px 26px -10px rgba(79, 70, 229, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.qvp-btn-primary::after {
	/* shine sweep on hover */
	content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-20deg); transition: left .45s ease;
	pointer-events: none;
}
.qvp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -10px rgba(79, 70, 229, .85), inset 0 1px 0 rgba(255, 255, 255, .28); }
.qvp-btn-primary:hover::after { left: 125%; }
.qvp-btn-primary:active { transform: translateY(0); }
.qvp-btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.qvp-btn-secondary { background: var(--qvp-accent-soft); color: #5b21b6; border-color: #ddd6fe; box-shadow: 0 2px 6px -2px rgba(109, 40, 217, .25); }
.qvp-btn-secondary:hover { background: #e3dcfd; transform: translateY(-1px); }
.qvp-btn-ghost { background: #fff; color: #4338ca; border-color: var(--qvp-field-border); }
.qvp-btn-ghost:hover { border-color: var(--qvp-accent); color: var(--qvp-accent); box-shadow: 0 6px 14px -8px rgba(109, 40, 217, .4); }
.qvp-wrap button:focus-visible, .qvp-wrap a.button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(99, 102, 241, .3); }

/* ── Matrix ── */
.qvp-matrix-bar {
	display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
	color: var(--qvp-mut); font-size: 13px;
	background: var(--qvp-bg); border: 1px solid var(--qvp-line-soft); border-radius: 12px; padding: 9px 12px;
}
.qvp-wrap .qvp-matrix-bar input.qvp-setall-qty { width: 78px; flex: none; margin-left: auto; min-height: 34px; padding: 6px 10px; }
.qvp-matrix-bar .button { border-radius: 9px; border-color: var(--qvp-field-border); color: #4338ca; transition: border-color .15s, color .15s, box-shadow .15s; }
.qvp-matrix-bar .button:hover { border-color: var(--qvp-accent); color: var(--qvp-accent); box-shadow: 0 4px 10px -6px rgba(109, 40, 217, .5); }
.qvp-row {
	display: grid; grid-template-columns: 1.4fr 86px 1.1fr 116px auto; gap: 10px; align-items: center;
	padding: 9px 12px; border-radius: 10px;
	animation: qvpRow .3s ease both;
	transition: background .15s, box-shadow .15s;
}
.qvp-row:nth-child(even of .qvp-row) { background: #faf9fe; } /* "of" keeps zebra stable when the vimg strip is inserted above the rows */
.qvp-row:hover { background: #f4f1ff; box-shadow: inset 0 0 0 1px #e3ddfb; }
.qvp-row .vname { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 13px; color: var(--qvp-ink); }
.qvp-row .vname::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #6366f1); box-shadow: 0 0 0 3px rgba(139, 92, 246, .15); }
.qvp-row input { min-height: 36px; padding: 7px 11px; }
.qvp-row .v-gen { color: var(--qvp-accent-2); background: none; border: none; cursor: pointer; font-size: 12px; border-radius: 7px; padding: 5px 7px; transition: background .15s; }
.qvp-row .v-gen:hover { background: var(--qvp-accent-soft); }

.qvp-vimg-toggle { margin: 2px 0 14px; color: #3b3860; }

/* ── First-run onboarding card ── */
.qvp-tour {
	border: 2px solid transparent;
	background:
		linear-gradient(180deg, #f8f6ff, #fff) padding-box,
		linear-gradient(120deg, #ddd6fe, #c7d2fe) border-box;
}
.qvp-tour-t { font-weight: 750; font-size: 14px; color: var(--qvp-ink); margin-bottom: 10px; }
.qvp-tour-steps { margin: 0 0 14px 18px; color: #3b3860; font-size: 13px; line-height: 1.7; }
.qvp-tour-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ── Per-variation image strip ── */
.qvp-vimg { background: var(--qvp-bg); border: 1px solid var(--qvp-line); border-radius: 12px; padding: 13px 15px; margin-bottom: 14px; }
.qvp-vimg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.qvp-vimg-t { font-weight: 700; font-size: 13px; color: var(--qvp-ink); }
.qvp-vimg-by { margin-left: 6px; color: var(--qvp-mut); font-size: 12px; }
.qvp-vimg-head select { min-width: 150px; min-height: 34px; padding: 6px 10px; width: auto; }
.qvp-vimg-strip { display: flex; flex-wrap: wrap; gap: 14px; }
.qvp-vimg-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; }
.qvp-vimg-box { width: 84px; height: 84px; border-radius: 11px; border: 2px dashed #cfcaec; background: #fff; cursor: pointer; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: border-color .15s, transform .15s, box-shadow .15s; }
.qvp-vimg-box:hover { border-color: var(--qvp-accent); transform: translateY(-1px); box-shadow: 0 8px 16px -10px rgba(109, 40, 217, .45); }
.qvp-vimg-box.has { border-style: solid; border-color: var(--qvp-line); }
.qvp-vimg-box > span { font-size: 24px; color: #a7a3c7; }
.qvp-vimg-box img { width: 100%; height: 100%; object-fit: cover; }
.qvp-vimg-count {
	position: absolute; bottom: 3px; right: 3px; padding: 1px 6px; border-radius: 999px;
	background: linear-gradient(120deg, #7c3aed, #4f46e5); color: #fff; font-size: 10px; font-weight: 800;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.qvp-vimg-lbl { font-size: 12px; font-weight: 600; color: #3b3860; text-align: center; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Save bar: floating glass ── */
.qvp-savebar {
	position: sticky; bottom: 12px; z-index: 40;
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px);
	border: 1px solid var(--qvp-line); border-radius: 15px;
	padding: 13px 18px; margin-top: 8px;
	box-shadow: 0 18px 40px -18px rgba(23, 15, 60, .35), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.qvp-ok {
	background: linear-gradient(120deg, #ecfdf3, #f0fdf9); border: 1px solid #a7f3c8; color: #065f33;
	padding: 11px 15px; border-radius: 11px; font-size: 13px;
	box-shadow: 0 8px 18px -12px rgba(5, 150, 105, .5);
}
.qvp-ok a { color: #047857; font-weight: 650; }
.qvp-warn {
	background: linear-gradient(120deg, #fffbeb, #fef9f0); border: 1px solid #fcd980; color: #92610a;
	padding: 11px 15px; border-radius: 11px; font-size: 13px;
	box-shadow: 0 8px 18px -12px rgba(217, 119, 6, .5);
}


/* ── Post-save review invitation + footer ── */
.qvp-review { margin-top: 10px; background: linear-gradient(120deg, #fffbeb, #fefce8); border: 1px solid #fde68a; border-radius: 12px; padding: 11px 15px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #713f12; box-shadow: 0 8px 20px -14px rgba(180, 83, 9, .5); }
.qvp-review-t { font-weight: 650; }
.qvp-review-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.qvp-review-actions .qvp-btn-secondary { text-decoration: none; padding: 7px 14px; font-size: 12px; }
.qvp-foot { margin-top: 20px; padding-bottom: 8px; color: #66617f; font-size: 12px; }
.qvp-foot a { color: var(--qvp-accent); text-decoration: none; font-weight: 600; }
.qvp-foot a:hover { text-decoration: underline; }

/* ── Toast ── */
.qvp-toast { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 99999; }
.qvp-toast .t {
	background: rgba(23, 21, 58, .96); color: #fff; padding: 12px 16px 12px 14px; border-radius: 12px; font-size: 13px;
	border-left: 3px solid #8b5cf6;
	box-shadow: 0 16px 36px -12px rgba(23, 15, 60, .55); backdrop-filter: blur(6px);
	transition: opacity .25s; max-width: 340px;
	animation: qvpToast .3s cubic-bezier(.22, .8, .36, 1) both;
}
.qvp-toast .t.ok { background: rgba(4, 108, 78, .96); border-left-color: #34d399; }
.qvp-toast .t.warn { background: rgba(146, 64, 14, .96); border-left-color: #fbbf24; }
.qvp-toast .t.err { background: rgba(153, 27, 27, .96); border-left-color: #f87171; }

/* ── Settings screen (shares the design language) ── */
.qvp-app-narrow { max-width: 760px; }
.qvp-hero-sm { padding: 20px 24px; }
.qvp-hero-sm .qvp-hero-icon { width: 48px; height: 48px; font-size: 23px; border-radius: 13px; }
.qvp-hero-sm h1 { font-size: 20px; }
.qvp-settings-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 460px; }
.qvp-desc { font-weight: 400; color: var(--qvp-mut); font-size: 12px; line-height: 1.5; }
.qvp-saved-inline { margin: 0 0 16px; }
.qvp-saved-inline .qvp-ok { display: inline-block; }

/* ── Responsive ── */
@media (max-width: 820px) {
	.qvp-grid { grid-template-columns: 1fr; }
	.qvp-grid .qvp-triple { grid-template-columns: 1fr 1fr; }
	.qvp-hero { flex-wrap: wrap; }
	.qvp-row { grid-template-columns: 1fr 1fr; }
	.qvp-row .vname { grid-column: 1 / -1; }
	.qvp-axis { flex-wrap: wrap; }
	.qvp-axis .qvp-axis-attr, .qvp-axis .qvp-axis-vals { width: 100%; flex: 1 1 100%; min-width: 0; }
	.qvp-savebar { bottom: 0; border-radius: 12px 12px 0 0; }
	.qvp-wrap input[type="text"], .qvp-wrap input[type="number"], .qvp-wrap select, .qvp-wrap textarea { font-size: 16px; }
	.qvp-toast { left: 12px; right: 12px; bottom: 84px; }
	.qvp-toast .t { max-width: none; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.qvp-wrap *, .qvp-wrap *::before, .qvp-wrap *::after { animation: none !important; transition: none !important; }
}

/* ============================================================================
   Coach-mark tour (QvpTour). Elements live on <body> (outside .qvp-wrap), so
   these rules are self-contained: literal colors + own dark/RTL/reduced-motion.
   ============================================================================ */
.qvp-tour-spot {
	position: fixed;
	z-index: 100000;
	border-radius: 10px;
	pointer-events: none;
	box-shadow: 0 0 0 3px #7c3aed, 0 0 0 9999px rgba(15, 12, 40, .55);
	transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease;
}
.qvp-tour-bubble {
	position: fixed;
	z-index: 100001;
	width: 320px;
	box-sizing: border-box;
	background: #fff;
	color: #17153a;
	border: 1px solid #e8e6f6;
	border-radius: 14px;
	padding: 16px 18px 14px;
	box-shadow: 0 22px 60px -14px rgba(20, 12, 70, .5);
	font-size: 13px;
	line-height: 1.55;
	animation: qvpTourIn .18s ease;
}
.qvp-tour-bubble.is-center {
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%);
}
@keyframes qvpTourIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.qvp-tour-arrow {
	position: absolute;
	width: 14px;
	height: 14px;
	background: #fff;
	border: 1px solid #e8e6f6;
	transform: rotate(45deg);
}
.qvp-tour-arrow.is-up { top: -8px; border-right: 0; border-bottom: 0; }
.qvp-tour-arrow.is-down { bottom: -8px; border-left: 0; border-top: 0; }
.qvp-tour-title { font-weight: 750; font-size: 14px; letter-spacing: -.01em; margin: 0 0 6px; }
.qvp-tour-body { color: #4a4870; margin: 0 0 14px; }
.qvp-tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qvp-tour-count { font-size: 11px; font-weight: 700; color: #9a97b8; }
.qvp-tour-nav { display: flex; gap: 8px; }
.qvp-tour-btn {
	font: inherit;
	font-size: 12.5px;
	font-weight: 650;
	padding: 7px 15px;
	border-radius: 9px;
	border: 1px solid transparent;
	cursor: pointer;
	line-height: 1;
}
.qvp-tour-go { color: #fff; background: linear-gradient(120deg, #7c3aed, #5b3ce0); box-shadow: 0 6px 16px -8px rgba(91, 60, 224, .7); }
.qvp-tour-go:hover { filter: brightness(1.06); }
.qvp-tour-ghost { color: #5b3ce0; background: #fff; border-color: #dcd9f0; }
.qvp-tour-ghost:hover { background: #f4f2fe; }
.qvp-tour-x { font: inherit; font-size: 12px; color: #9a97b8; background: none; border: 0; cursor: pointer; padding: 4px; }
.qvp-tour-x:hover { color: #5b3ce0; text-decoration: underline; }
/* Replay pill shown in a screen header */
.qvp-tour-pill {
	font: inherit;
	font-size: 12px;
	font-weight: 650;
	color: #5b3ce0;
	background: #ede9fe;
	border: 1px solid #d9d2f7;
	border-radius: 999px;
	padding: 4px 12px;
	cursor: pointer;
	line-height: 1.4;
}
.qvp-tour-pill:hover { background: #e2dbfb; }

@media (prefers-color-scheme: dark) {
	.qvp-tour-spot { box-shadow: 0 0 0 3px #a78bfa, 0 0 0 9999px rgba(5, 4, 15, .68); }
	.qvp-tour-bubble { background: #23202f; color: #e8eaed; border-color: #3a3550; box-shadow: 0 22px 60px -14px rgba(0, 0, 0, .6); }
	.qvp-tour-arrow { background: #23202f; border-color: #3a3550; }
	.qvp-tour-title { color: #f2f0f7; }
	.qvp-tour-body { color: #b7b3cc; }
	.qvp-tour-count { color: #7d799a; }
	.qvp-tour-ghost { color: #c4b5fd; background: #2a2740; border-color: #443f5e; }
	.qvp-tour-ghost:hover { background: #322e4a; }
	.qvp-tour-x { color: #8a86a8; }
	.qvp-tour-x:hover { color: #c4b5fd; }
	.qvp-tour-pill { color: #c4b5fd; background: #2c2745; border-color: #443f5e; }
	.qvp-tour-pill:hover { background: #352f52; }
}

/* RTL: flip the bubble footer + arrow math is symmetric enough to leave */
[dir="rtl"] .qvp-tour-foot,
.qvp-locale-rtl .qvp-tour-foot { flex-direction: row-reverse; }
[dir="rtl"] .qvp-tour-nav,
.qvp-locale-rtl .qvp-tour-nav { flex-direction: row-reverse; }

@media (prefers-reduced-motion: reduce) {
	.qvp-tour-spot { transition: none; }
	.qvp-tour-bubble { animation: none; }
}
