/* HVL Configurator Core: option UI, ported verbatim from the concept
   (assets/product.css). Scoped to .hvlc; every token has the concept value
   as fallback so the configurators keep their look after a theme switch. */
.hvlc { display: flex; flex-direction: column; gap: 16px; width: 100%; min-width: 0; }
.hvlc [data-hvlc-app] { display: flex; flex-direction: column; gap: 16px; }
.hvlc .hv-field { display: block; margin: 0; }
.hvlc .hv-opt__hint--key strong { color: var(--hv-ink, #1e1a16); }
.hvlc button { font: inherit; }
.hvlc svg { width: 16px; height: 16px; flex: 0 0 auto; }
.hvlc-sum { border: 1px solid var(--hv-line, #ece5dc); background: #fff; padding: 16px 18px; }
.hvlc-sum[hidden] { display: none; }
/* Any element a tool hides with the hidden attribute stays hidden, whatever its component display. */
.hvlc [hidden][hidden] { display: none; }
.hvlc-sum__lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 5px; }
.hvlc-sum__lines li { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.hvlc-sum__lines li.is-muted { color: var(--hv-muted, #8a8078); }
.hvlc-sum__tot { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1.5px solid var(--hv-ink, #1e1a16); font-size: 19px; font-weight: 800; }
.hvlc-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 18px); z-index: 11000; max-width: 90vw; padding: 12px 20px; background: #1e1a16; color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.hvlc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.hvlc .hv-combos { list-style: none; }
.hvlc .hv-forder__list { list-style: none; }
.hvlc-loop-button { display: inline-block; }
@media (max-width: 899px) { .hvlc .hv-combos { max-height: none; } .hvlc .hv-combos--named { max-height: 420px; } }
.hvlc .hv-opt { display: flex; flex-direction: column; gap: 9px; }
.hvlc .hv-opt__label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	font-weight: 700;
}
.hvlc .hv-opt__label em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--hv-muted, #8a8078); }
.hvlc .hv-opt__hint { font-size: 12.5px; color: var(--hv-muted, #8a8078); line-height: 1.45; }
.hvlc .hv-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hvlc .hv-pill {
	padding: 9px 16px;
	border: 1.5px solid var(--hv-line-strong, #dbd1c5);
	border-radius: 0;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: var(--hv-ink-soft, #4a423a);
	cursor: pointer;
	transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.hvlc .hv-pill:hover:not(:disabled) { border-color: var(--hv-accent, #5a9b97); }
.hvlc .hv-pill.is-on { border-color: var(--hv-accent, #5a9b97); background: var(--hv-accent-soft, #e9f3f2); color: var(--hv-accent-dark, #427d79); }
.hvlc .hv-pill:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.hvlc .hv-pill small { display: block; font-size: 11.5px; font-weight: 600; opacity: .7; }
.hvlc .hv-optcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; }
.hvlc .hv-optcard {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 12px 14px;
	border: 1.5px solid var(--hv-line-strong, #dbd1c5);
	border-radius: 0;
	background: #fff;
	text-align: left;
	cursor: pointer;
	transition: border-color .14s ease, background .14s ease;
}
.hvlc .hv-optcard:hover { border-color: var(--hv-accent, #5a9b97); }
.hvlc .hv-optcard.is-on { border-color: var(--hv-accent, #5a9b97); background: var(--hv-accent-soft, #e9f3f2); }
.hvlc .hv-optcard b { font-size: 14px; font-weight: 700; }
.hvlc .hv-optcard span { font-size: 12.5px; color: var(--hv-muted, #8a8078); line-height: 1.4; }
.hvlc .hv-optcard i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--hv-accent-dark, #427d79); }
.hvlc .hv-combos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 10px;
	max-height: 320px;
	overflow-y: auto;
	padding: 2px 4px 4px 2px;
	scrollbar-width: thin;
}
.hvlc .hv-combo { position: relative; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.hvlc .hv-combo__img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 0;
	background: var(--hv-bg-deep, #f2ece4) center/cover no-repeat;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
	transition: transform .14s ease, box-shadow .14s ease;
}
.hvlc .hv-combo:hover .hv-combo__img { transform: translateY(-2px); }
.hvlc .hv-combo.is-on .hv-combo__img { box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 0 0 2px #fff, 0 0 0 4px var(--hv-accent, #5a9b97); }
.hvlc .hv-combo__name { display: block; margin-top: 5px; font-size: 11.5px; color: var(--hv-ink-soft, #4a423a); }
.hvlc .hv-combo__check {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 20px;
	height: 20px;
	border-radius: 0;
	background: var(--hv-accent, #5a9b97);
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.hvlc .hv-combo__check svg { width: 12px; height: 12px; }
.hvlc .hv-combo.is-on .hv-combo__check { display: flex; }
.hvlc .hv-field {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--hv-line-strong, #dbd1c5);
	border-radius: 0;
	background: #fff;
	font-size: 15px;
}
.hvlc .hv-field:focus { border-color: var(--hv-accent, #5a9b97); outline: none; box-shadow: 0 0 0 3px var(--hv-accent-soft, #e9f3f2); }
.hvlc .hv-field--name {
	font-family: var(--hv-display, "Karla", var(--hv-font));
	font-size: 19px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}
.hvlc .hv-field--area { min-height: 82px; resize: vertical; font-size: 14px; }
.hvlc .hv-meterrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 12.5px;
	color: var(--hv-muted, #8a8078);
}
.hvlc .hv-meterrow strong { color: var(--hv-ink, #1e1a16); font-variant-numeric: tabular-nums; }
.hvlc .hv-meter { flex: 1 1 auto; max-width: 140px; height: 5px; border-radius: 0; background: var(--hv-line, #ece5dc); overflow: hidden; }
.hvlc .hv-meter i { display: block; height: 100%; width: 0; border-radius: 0; background: var(--hv-accent, #5a9b97); transition: width .18s ease; }
.hvlc .hv-meter.is-full i { background: var(--hv-warm, #c98a5b); }
.hvlc .hv-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.hvlc .hv-num {
	aspect-ratio: 1;
	border: 1.5px solid var(--hv-line-strong, #dbd1c5);
	border-radius: 0;
	background: #fff;
	font-family: var(--hv-display, "Karla", var(--hv-font));
	font-size: 20px;
	font-weight: 800;
	color: var(--hv-ink-soft, #4a423a);
	cursor: pointer;
	transition: border-color .14s ease, background .14s ease, transform .1s ease;
}
.hvlc .hv-num:hover { border-color: var(--hv-accent, #5a9b97); }
.hvlc .hv-num:active { transform: scale(.96); }
.hvlc .hv-num.is-on { border-color: var(--hv-accent, #5a9b97); background: var(--hv-accent-soft, #e9f3f2); color: var(--hv-accent-dark, #427d79); box-shadow: inset 0 0 0 1px var(--hv-accent, #5a9b97); }
.hvlc .hv-studio {
	position: relative;
	border-radius: 0;
	padding: clamp(20px, 2.6vw, 28px);
	background: linear-gradient(155deg, #2f4f4d 0%, #3c6663 58%, #4a7d79 100%);
	color: #eef6f5;
	overflow: hidden;
}
.hvlc .hv-studio h3 { font-family: var(--hv-display, "Karla", var(--hv-font)); font-size: 21px; font-weight: 800; color: #fff; margin-bottom: 7px; }
.hvlc .hv-studio p { font-size: 14.5px; line-height: 1.55; color: #cfe3e1; margin-bottom: 16px; }
.hvlc .hv-studio .hv-btn { background: #fff; color: #2f4f4d; }
.hvlc .hv-studio .hv-btn:hover { background: #eef6f5; }
.hvlc .hv-studio__feats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hvlc .hv-studio__feat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 0;
	background: rgba(255, 255, 255, .14);
	font-size: 12.5px;
	font-weight: 600;
}
.hvlc .hv-studio__feat svg { width: 13px; height: 13px; }
.hvlc .hv-notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border-radius: 0;
	background: var(--hv-warm-soft, #fbf1e8);
	border: 1px solid var(--hv-warm-line, #f0dcc8);
	color: var(--hv-warm-ink, #8a5c33);
	font-size: 13px;
	line-height: 1.5;
}
.hvlc .hv-notice svg { width: 16px; height: 16px; margin-top: 1px; color: var(--hv-warm, #c98a5b); }
.hvlc .hv-missing {
	margin-top: 12px;
	padding: 10px 13px;
	border-radius: 0;
	background: var(--hv-warm-soft, #fbf1e8);
	border: 1px solid var(--hv-warm-line, #f0dcc8);
	color: var(--hv-warm-ink, #8a5c33);
	font-size: 12.5px;
}
.hvlc .hv-missing[hidden] { display: none; }
.hvlc .hv-missing b { display: block; margin-bottom: 3px; }
.hvlc .hv-missing li { position: relative; padding-left: 14px; }
.hvlc .hv-missing li::before { content: "•"; position: absolute; left: 3px; }
@media (max-width: 899px) {
.hvlc .hv-combos { max-height: none; }
}
.hvlc .hv-combos--named { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); max-height: 380px; }
.hvlc .hv-combos--named .hv-combo__img { aspect-ratio: 4 / 3; }
.hvlc .hv-combos--named .hv-combo__name { font-size: 11.5px; line-height: 1.3; }
.hvlc .hv-colorpick { display: grid; gap: 10px; }
.hvlc .hv-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
	gap: 7px;
}
.hvlc .hv-swatch {
	aspect-ratio: 1;
	width: 100%;
	border: 0;
	padding: 0;
	border-radius: 0;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
	transition: transform .12s ease, box-shadow .12s ease;
}
.hvlc .hv-swatch:hover { transform: translateY(-2px); }
.hvlc .hv-swatch.is-on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 2px #fff, 0 0 0 4px var(--hv-accent, #5a9b97); }
.hvlc .hv-swatchname { display: flex; align-items: center; gap: 8px; min-height: 20px; font-size: 13.5px; color: var(--hv-ink-soft, #4a423a); }
.hvlc .hv-swatchname i { flex: 0 0 auto; width: 16px; height: 16px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22); }
.hvlc .hv-swatchname b { color: var(--hv-ink, #1e1a16); font-weight: 700; }
.hvlc .hv-subopt { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--hv-line-strong, #dbd1c5); display: grid; gap: 10px; }
.hvlc .hv-subopt__label { font-size: 13.5px; color: var(--hv-ink-soft, #4a423a); }
.hvlc .hv-subopt__label b { color: var(--hv-ink, #1e1a16); }
.hvlc .hv-pill--font { display: inline-flex; align-items: center; gap: 9px; }
.hvlc .hv-fontsample { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.hvlc .hv-symbols { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 8px; }
.hvlc .hv-symbols__lbl { font-size: 12.5px; color: var(--hv-muted, #8a8078); margin-right: 2px; }
.hvlc .hv-symbol {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1.5px solid var(--hv-line-strong, #dbd1c5);
	background: #fff;
	cursor: pointer;
	font-size: 13px;
	transition: border-color .12s ease, background .12s ease;
}
.hvlc .hv-symbol span { font-size: 18px; line-height: 1; }
.hvlc .hv-symbol small { font-size: 12px; color: var(--hv-ink-soft, #4a423a); }
.hvlc .hv-symbol:hover { border-color: var(--hv-accent, #5a9b97); background: var(--hv-accent-soft, #e9f3f2); }
.hvlc .hv-namepreview {
	position: relative;
	margin-top: 12px;
	padding: 8px 6px 4px;
	background: var(--hv-bg, #faf7f3);
	overflow-x: auto;
	scrollbar-width: thin;
}
.hvlc .hv-namepreview__cord {
	position: absolute;
	left: 0;
	right: 0;
	top: 8px;
	height: 3px;
	background: var(--hv-np-cord, #fff8e6);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.hvlc .hv-namepreview__flags { position: relative; display: flex; gap: 3px; padding-top: 2px; min-height: 46px; }
.hvlc .hv-namepreview__empty { align-self: center; padding: 14px 4px 6px; font-size: 12.5px; color: var(--hv-muted, #8a8078); }
.hvlc .hv-npflag {
	flex: 0 0 32px;
	height: 40px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 5px;
	background: #e9dfd0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}
.hvlc .hv-npflag.is-tri { clip-path: polygon(0 0, 100% 0, 50% 100%); height: 44px; }
.hvlc .hv-npflag.is-blank { background: #efe8dc; }
@media (max-width: 899px) {
.hvlc .hv-combos--named { max-height: 420px; }
}
.hvlc .hv-combos--named .hv-combo__img { background-size: contain; }
.hvlc .hv-swatches--img { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.hvlc .hv-swatch--img { background: var(--hv-bg-deep, #f2ece4) center/cover no-repeat; }
.hvlc .hv-swatchname i { background-size: cover; background-position: center; }
.hvlc .hv-icons { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); max-height: none; }
.hvlc .hv-icons .hv-combo__img { aspect-ratio: 1; background-size: cover; }
.hvlc .hv-fabpick { display: grid; gap: 14px; }
.hvlc .hv-fabgrid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); max-height: 300px; }
.hvlc .hv-fabgrid .hv-combo__img { aspect-ratio: 1; background-size: cover; }
.hvlc .hv-combo__pos {
	position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; padding: 0 5px;
	display: flex; align-items: center; justify-content: center;
	background: var(--hv-accent, #5a9b97); color: #fff; font-size: 12px; font-weight: 800;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.hvlc .hv-forder { padding: 12px; background: var(--hv-bg, #faf7f3); border: 1px dashed var(--hv-line-strong, #dbd1c5); }
.hvlc .hv-forder__head { display: grid; gap: 2px; margin-bottom: 10px; font-size: 13.5px; }
.hvlc .hv-forder__head span { font-size: 12.5px; color: var(--hv-muted, #8a8078); }
.hvlc .hv-forder__empty { font-size: 13px; color: var(--hv-muted, #8a8078); margin: 0; }
.hvlc .hv-forder__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hvlc .hv-forder__item {
	display: flex; align-items: center; gap: 10px; padding: 6px 8px;
	background: #fff; border: 1px solid var(--hv-line, #ece5dc); cursor: grab; user-select: none;
}
.hvlc .hv-forder__item.is-drag { opacity: .45; }
.hvlc .hv-forder__item.is-over { border-color: var(--hv-accent, #5a9b97); box-shadow: 0 0 0 2px var(--hv-accent-soft, #e9f3f2); }
.hvlc .hv-forder__n { flex: 0 0 22px; font-size: 12px; font-weight: 800; color: var(--hv-accent-dark, #427d79); text-align: center; }
.hvlc .hv-forder__img { flex: 0 0 34px; height: 34px; background: var(--hv-bg-deep, #f2ece4) center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.hvlc .hv-forder__name { flex: 1 1 auto; font-size: 13px; line-height: 1.3; }
.hvlc .hv-forder__ctr { display: flex; gap: 4px; }
.hvlc .hv-forder__btn {
	width: 30px; height: 30px; border: 1px solid var(--hv-line-strong, #dbd1c5); background: #fff;
	font-size: 17px; line-height: 1; cursor: pointer; color: var(--hv-ink, #1e1a16);
}
.hvlc .hv-forder__btn:hover:not(:disabled) { border-color: var(--hv-accent, #5a9b97); background: var(--hv-accent-soft, #e9f3f2); }
.hvlc .hv-forder__btn:disabled { opacity: .35; cursor: default; }
.hvlc .hv-forder__rm { color: var(--hv-muted, #8a8078); }
.hvlc .hv-embpreview__lbl { font-size: 13px; font-weight: 700; color: var(--hv-ink-soft, #4a423a); margin-bottom: -8px; }
.hvlc .hv-embpreview { margin-top: 0; }
.hvlc .hv-npflag--emb { background-size: cover; background-position: center; flex-basis: 34px; height: 42px; padding-top: 6px; }
.hvlc .hv-npflag--emb.is-tri { height: 46px; }
.hvlc .hv-npletter {
	display: inline-block; padding: 0 3px; background: rgba(255, 255, 255, .78);
	font: 800 17px/1.15 var(--hv-display, "Karla", var(--hv-font)); color: var(--hv-ink, #1e1a16);
}
.hvlc .hv-npletter.has-thread {
	background-size: 260% auto; background-position: center;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	-webkit-text-stroke: .4px rgba(0, 0, 0, .25);
	filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1px #fff);
}
.hvlc .hv-npicon { display: block; width: 22px; height: 22px; background: #fff center/cover no-repeat; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.hvlc .hv-studio__text p { font-size: 14.5px; line-height: 1.55; color: #cfe3e1; margin-bottom: 10px; }
.hvlc .hv-studio__text p:last-child { margin-bottom: 16px; }
.hvlc .hv-studio__text strong { color: #fff; }
.hvlc .hv-gcamount { display: flex; align-items: center; gap: 8px; margin-top: 10px; max-width: 220px; }
.hvlc .hv-gcamount span { font-weight: 800; color: var(--hv-ink, #1e1a16); }
.hvlc .hv-gcamount .hv-field { width: 100%; }
.hvlc .hv-badgeprev {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
	padding: 12px 16px;
	background: var(--hv-card, #fff);
	border: 1px solid var(--hv-line, #e7dccd);
}
.hvlc .hv-badgeprev__art { flex: 0 0 120px; width: 120px; height: 120px; }
.hvlc .hv-badgeprev__art svg { display: block; width: 100%; height: 100%; }
.hvlc .hv-badgeprev__txt { margin: 0; font-size: 14px; line-height: 1.5; }
.hvlc .hv-badgeprev__txt b { display: block; margin-bottom: 2px; }
.hvlc .hv-badgeprev__txt span { color: var(--hv-muted, #7a6d60); font-size: 13px; }
.hvlc .hv-badgeprev__note { margin: -4px 0 16px; }
.hvlc .hv-colorpick--scroll .hv-swatches { max-height: 236px; overflow-y: auto; padding: 2px; }
@media (max-width: 480px) {
.hvlc .hv-badgeprev__art { flex-basis: 96px; width: 96px; height: 96px; }
}

/* Button (copy of the theme's .hv-btn, so a launcher still looks right without the theme). */
.hvlc .hv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border: 1.5px solid transparent; border-radius: 0; background: var(--hv-accent, #5a9b97); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s ease; }
.hvlc .hv-btn svg { width: 17px; height: 17px; }
.hvlc .hv-btn:hover { background: var(--hv-accent-dark, #427d79); }
.hvlc .hv-studio .hv-btn { background: #fff; color: #2f4f4d; }
.hvlc .hv-studio .hv-btn:hover { background: #eef6f5; }
