body.fws-bookmatch-open {
	overflow: hidden;
}

.fws-bookmatch,
.fws-bookmatch *,
.fws-bookmatch *::before,
.fws-bookmatch *::after {
	box-sizing: border-box;
}

.fws-bookmatch {
	align-items: center;
	color: var(--fws-black-soft);
	display: flex;
	font-family: var(--fws-ui);
	inset: 0;
	justify-content: center;
	padding: 18px;
	position: fixed;
	z-index: 2147483000;
}

.fws-bookmatch[hidden] {
	display: none;
}

.fws-bookmatch__backdrop {
	background: rgba(12, 13, 13, .93);
	inset: 0;
	position: absolute;
}

.fws-bookmatch__workspace {
	background: var(--fws-black);
	box-shadow: 0 32px 90px rgba(12, 13, 13, .45);
	display: flex;
	flex-direction: column;
	height: min(920px, calc(100dvh - 36px));
	max-width: 1760px;
	min-height: 620px;
	overflow: hidden;
	position: relative;
	width: min(1760px, calc(100vw - 36px));
	z-index: 1;
}

.fws-bookmatch__workspace:fullscreen,
.fws-bookmatch__workspace.is-pseudo-fullscreen {
	height: 100dvh;
	max-width: none;
	width: 100vw;
}

.fws-bookmatch__header {
	align-items: stretch;
	background: var(--fws-black);
	border-bottom: 1px solid rgba(247, 245, 240, .17);
	color: var(--fws-paper);
	display: grid;
	flex: 0 0 76px;
	grid-template-columns: minmax(240px, .7fr) minmax(0, 1fr) 76px;
	min-height: 76px;
}

.fws-bookmatch__brand,
.fws-bookmatch__identity {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 0 24px;
}

.fws-bookmatch__brand {
	border-right: 1px solid rgba(247, 245, 240, .17);
}

.fws-bookmatch__brand span {
	font-family: var(--fws-display);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.04em;
	text-transform: uppercase;
}

.fws-bookmatch__brand i,
.fws-bookmatch__identity small {
	color: var(--fws-gold);
	font-size: 7px;
	font-style: normal;
	letter-spacing: .16em;
	margin-top: 5px;
	text-transform: uppercase;
}

.fws-bookmatch__identity small {
	margin: 0 0 4px;
}

.fws-bookmatch__identity strong {
	font-family: var(--fws-display);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -.025em;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.fws-bookmatch__close {
	background: transparent;
	border: 0;
	border-left: 1px solid rgba(247, 245, 240, .17);
	color: var(--fws-paper);
	cursor: pointer;
	font-family: var(--fws-ui);
	font-size: 28px;
}

.fws-bookmatch__close:hover,
.fws-bookmatch__close:focus-visible {
	background: var(--fws-gold);
	color: var(--fws-black);
	outline: none;
}

.fws-bookmatch__body {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1fr) minmax(310px, 22vw);
	min-height: 0;
}

.fws-bookmatch__stage {
	align-items: center;
	background: var(--fws-black-soft);
	cursor: grab;
	display: flex;
	justify-content: center;
	min-height: 0;
	overflow: hidden;
	padding: 6px;
	position: relative;
	touch-action: none;
	user-select: none;
}

.fws-bookmatch__stage.is-dragging {
	cursor: grabbing;
}

.fws-bookmatch__stage canvas {
	box-shadow: 0 20px 70px rgba(12, 13, 13, .42);
	display: block;
	max-height: 100%;
	max-width: 100%;
	opacity: 0;
	transition: opacity .45s ease;
}

.fws-bookmatch.is-ready .fws-bookmatch__stage canvas {
	opacity: 1;
}

.fws-bookmatch__loading {
	align-items: center;
	color: rgba(247, 245, 240, .56);
	display: flex;
	font-size: 8px;
	gap: 12px;
	letter-spacing: .15em;
	position: absolute;
	text-transform: uppercase;
}

.fws-bookmatch.is-ready .fws-bookmatch__loading {
	display: none;
}

.fws-bookmatch__loading span {
	animation: fws-bookmatch-pulse 1s ease-in-out infinite alternate;
	background: var(--fws-gold);
	border-radius: 50%;
	height: 7px;
	width: 7px;
}

.fws-bookmatch__hint {
	bottom: 17px;
	color: rgba(247, 245, 240, .42);
	font-size: 7px;
	letter-spacing: .13em;
	margin: 0;
	pointer-events: none;
	position: absolute;
	text-transform: uppercase;
}

.fws-bookmatch__controls {
	background: var(--fws-ivory);
	border-left: 1px solid rgba(12, 13, 13, .2);
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
	padding: 32px 28px 24px;
}

.fws-bookmatch__intro {
	border-bottom: 1px solid rgba(12, 13, 13, .2);
	padding-bottom: 28px;
}

.fws-bookmatch__intro .fws-eyebrow {
	margin: 0 0 14px;
}

.fws-bookmatch__intro h2 {
	font-family: var(--fws-display);
	font-size: clamp(32px, 3vw, 50px);
	font-weight: 500;
	letter-spacing: -.065em;
	line-height: .9;
	margin: 0;
	text-transform: uppercase;
}

.fws-bookmatch__intro > p:last-child {
	color: rgba(12, 13, 13, .58);
	font-size: 9px;
	line-height: 1.6;
	margin: 18px 0 0;
}

.fws-bookmatch__group {
	border: 0;
	border-bottom: 1px solid rgba(12, 13, 13, .18);
	margin: 0;
	padding: 24px 0;
}

.fws-bookmatch__group legend,
.fws-bookmatch__label,
.fws-bookmatch__ranges label > span {
	color: rgba(12, 13, 13, .55);
	display: block;
	font-size: 7px;
	letter-spacing: .15em;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.fws-bookmatch__segments,
.fws-bookmatch__button-row {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fws-bookmatch__segments label {
	cursor: pointer;
	position: relative;
}

.fws-bookmatch__segments input {
	opacity: 0;
	position: absolute;
}

.fws-bookmatch__segments span,
.fws-bookmatch__button-row button {
	align-items: center;
	background: var(--fws-paper);
	border: 1px solid rgba(12, 13, 13, .18);
	color: var(--fws-black-soft);
	display: flex;
	font-family: var(--fws-ui);
	font-size: 8px;
	justify-content: center;
	letter-spacing: .1em;
	min-height: 44px;
	text-transform: uppercase;
}

.fws-bookmatch__segments input:checked + span {
	background: var(--fws-black-soft);
	border-color: var(--fws-black-soft);
	color: var(--fws-paper);
}

.fws-bookmatch__segments input:focus-visible + span {
	outline: 1px solid var(--fws-gold);
	outline-offset: 2px;
}

.fws-bookmatch__button-row {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fws-bookmatch__button-row button {
	cursor: pointer;
}

.fws-bookmatch__button-row button:hover,
.fws-bookmatch__button-row button:focus-visible {
	border-color: var(--fws-gold);
	color: var(--fws-gold);
	outline: none;
}

.fws-bookmatch__ranges {
	display: grid;
	gap: 20px;
	padding: 24px 0;
}

.fws-bookmatch__ranges label > span {
	display: flex;
	justify-content: space-between;
	margin-bottom: 9px;
}

.fws-bookmatch__ranges output {
	color: var(--fws-black-soft);
}

.fws-bookmatch__ranges input {
	accent-color: var(--fws-gold);
	cursor: ew-resize;
	width: 100%;
}

.fws-bookmatch__ranges input:disabled {
	cursor: not-allowed;
	opacity: .28;
}

.fws-bookmatch__dimensions-toggle {
	align-items: center;
	background: transparent;
	border: 1px solid rgba(12, 13, 13, .22);
	color: var(--fws-black-soft);
	cursor: pointer;
	display: flex;
	font-family: var(--fws-ui);
	justify-content: space-between;
	margin-top: 2px;
	min-height: 58px;
	padding: 10px 12px;
	text-align: left;
	width: 100%;
}

.fws-bookmatch__dimensions-toggle > span,
.fws-bookmatch__dimensions-toggle strong,
.fws-bookmatch__dimensions-toggle small {
	display: block;
}

.fws-bookmatch__dimensions-toggle strong {
	font-size: 8px;
	font-weight: 500;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.fws-bookmatch__dimensions-toggle small {
	color: rgba(12, 13, 13, .5);
	font-size: 7px;
	letter-spacing: .06em;
	margin-top: 5px;
}

.fws-bookmatch__dimensions-toggle i {
	align-items: center;
	border: 1px solid rgba(12, 13, 13, .28);
	border-radius: 50%;
	display: flex;
	font-size: 7px;
	font-style: normal;
	height: 34px;
	justify-content: center;
	letter-spacing: .08em;
	text-transform: uppercase;
	width: 34px;
}

.fws-bookmatch__dimensions-toggle:hover,
.fws-bookmatch__dimensions-toggle:focus-visible,
.fws-bookmatch__dimensions-toggle.is-active {
	border-color: var(--fws-gold);
	outline: none;
}

.fws-bookmatch__dimensions-toggle.is-active i {
	background: var(--fws-gold);
	border-color: var(--fws-gold);
	color: var(--fws-black);
}

.fws-bookmatch__status {
	color: rgba(12, 13, 13, .55);
	font-size: 7px;
	letter-spacing: .1em;
	line-height: 1.5;
	margin-top: auto;
	padding: 22px 0 13px;
	text-transform: uppercase;
}

.fws-bookmatch__actions {
	display: grid;
	gap: 8px;
}

.fws-bookmatch__actions button {
	align-items: center;
	border: 1px solid var(--fws-black-soft);
	cursor: pointer;
	display: flex;
	font-family: var(--fws-ui);
	font-size: 8px;
	justify-content: space-between;
	letter-spacing: .12em;
	min-height: 48px;
	padding: 0 14px;
	text-transform: uppercase;
}

.fws-bookmatch__actions button span {
	color: var(--fws-gold);
	font-size: 14px;
}

.fws-bookmatch__actions .is-secondary {
	background: transparent;
	color: var(--fws-black-soft);
}

.fws-bookmatch__actions .is-primary {
	background: var(--fws-black-soft);
	color: var(--fws-paper);
}

.fws-bookmatch__actions button:hover,
.fws-bookmatch__actions button:focus-visible {
	background: var(--fws-gold);
	border-color: var(--fws-gold);
	color: var(--fws-black);
	outline: none;
}

.fws-bookmatch__actions button:hover span,
.fws-bookmatch__actions button:focus-visible span {
	color: inherit;
}

.fws-bookmatch-export {
	align-items: center;
	background: rgba(12, 13, 13, .9);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 2147483600;
}

.fws-bookmatch-export__card {
	background: var(--fws-paper);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	padding: 34px;
	width: min(620px, calc(100vw - 40px));
}

.fws-bookmatch-export__card > small {
	color: var(--fws-gold);
	font-size: 7px;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.fws-bookmatch-export__card h3 {
	font-family: var(--fws-display);
	font-size: clamp(36px, 5vw, 58px);
	font-weight: 500;
	letter-spacing: -.06em;
	line-height: .9;
	margin: 14px 0 18px;
	text-transform: uppercase;
}

.fws-bookmatch-export__card > p {
	color: rgba(12, 13, 13, .58);
	font-size: 10px;
	line-height: 1.6;
	margin: 0 0 24px;
}

.fws-bookmatch-export__grid {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fws-bookmatch-export__grid button,
.fws-bookmatch-export__close {
	background: var(--fws-ivory);
	border: 1px solid rgba(12, 13, 13, .18);
	color: var(--fws-black-soft);
	cursor: pointer;
	font-family: var(--fws-ui);
	padding: 16px;
	text-align: left;
}

.fws-bookmatch-export__grid button strong,
.fws-bookmatch-export__grid button span {
	display: block;
}

.fws-bookmatch-export__grid button strong {
	font-size: 9px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.fws-bookmatch-export__grid button span {
	color: rgba(12, 13, 13, .52);
	font-size: 8px;
	margin-top: 6px;
}

.fws-bookmatch-export__grid button:hover,
.fws-bookmatch-export__grid button:focus-visible {
	border-color: var(--fws-gold);
	outline: none;
}

.fws-bookmatch-export__close {
	background: var(--fws-black-soft);
	color: var(--fws-paper);
	font-size: 8px;
	letter-spacing: .12em;
	margin-top: 18px;
	min-height: 46px;
	text-align: center;
	text-transform: uppercase;
	width: 100%;
}

@keyframes fws-bookmatch-pulse {
	to { opacity: .25; transform: scale(.75); }
}

@media (max-width: 900px) {
	.fws-bookmatch {
		padding: 0;
	}

	.fws-bookmatch__workspace {
		height: 100dvh;
		min-height: 0;
		width: 100vw;
	}

	.fws-bookmatch__header {
		flex-basis: 64px;
		grid-template-columns: minmax(120px, .7fr) minmax(0, 1fr) 64px;
		min-height: 64px;
	}

	.fws-bookmatch__brand,
	.fws-bookmatch__identity {
		padding: 0 14px;
	}

	.fws-bookmatch__brand span {
		font-size: 13px;
	}

	.fws-bookmatch__brand i {
		display: none;
	}

	.fws-bookmatch__identity strong {
		font-size: 10px;
	}

	.fws-bookmatch__body {
		display: flex;
		flex-direction: column;
		overflow-y: auto;
	}

	.fws-bookmatch__stage {
		flex: 0 0 43dvh;
		min-height: 280px;
		padding: 4px;
	}

	.fws-bookmatch__hint {
		bottom: 9px;
	}

	.fws-bookmatch__controls {
		border-left: 0;
		border-top: 1px solid rgba(12, 13, 13, .2);
		overflow: visible;
		padding: 30px 18px calc(20px + env(safe-area-inset-bottom));
	}

	.fws-bookmatch__intro h2 {
		font-size: 38px;
	}

	.fws-bookmatch__actions {
		background: var(--fws-ivory);
		bottom: calc(-20px - env(safe-area-inset-bottom));
		margin: 0 -18px;
		padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
		position: sticky;
	}
}

@media (max-width: 560px) {
	.fws-bookmatch__identity small {
		display: none;
	}

	.fws-bookmatch-export__card {
		padding: 26px 20px;
	}

	.fws-bookmatch-export__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fws-bookmatch *,
	.fws-bookmatch *::before,
	.fws-bookmatch *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* 0.8.9 — finished cut + physical overlap / waste visualization */
.fws-bookmatch__finished-size {
	padding-bottom: 20px;
}

.fws-bookmatch__label em {
	color: rgba(12, 13, 13, .42);
	font-style: normal;
	font-weight: 400;
	margin-left: 5px;
}

.fws-bookmatch__size-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fws-bookmatch__size-grid > label > span:first-child {
	color: rgba(12, 13, 13, .52);
	display: block;
	font-size: 7px;
	letter-spacing: .12em;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.fws-bookmatch__number {
	align-items: center;
	background: var(--fws-paper);
	border: 1px solid rgba(12, 13, 13, .18);
	display: flex;
	min-height: 46px;
}

.fws-bookmatch__number:focus-within {
	border-color: var(--fws-gold);
}

.fws-bookmatch__number input {
	appearance: textfield;
	background: transparent;
	border: 0;
	color: var(--fws-black-soft);
	font-family: var(--fws-display);
	font-size: 20px;
	font-weight: 500;
	min-width: 0;
	outline: 0;
	padding: 8px 4px 8px 11px;
	width: 100%;
}

.fws-bookmatch__number input::-webkit-inner-spin-button,
.fws-bookmatch__number input::-webkit-outer-spin-button {
	appearance: none;
	margin: 0;
}

.fws-bookmatch__number i {
	color: rgba(12, 13, 13, .48);
	font-size: 7px;
	font-style: normal;
	letter-spacing: .1em;
	padding-right: 10px;
	text-transform: uppercase;
}

.fws-bookmatch__size-footer {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: 10px;
}

.fws-bookmatch__size-footer small {
	color: rgba(12, 13, 13, .5);
	font-size: 7px;
	line-height: 1.45;
}

.fws-bookmatch__size-footer button {
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(12, 13, 13, .38);
	color: var(--fws-black-soft);
	cursor: pointer;
	font-family: var(--fws-ui);
	font-size: 7px;
	letter-spacing: .1em;
	padding: 2px 0;
	text-transform: uppercase;
	white-space: nowrap;
}

.fws-bookmatch__size-footer button:hover,
.fws-bookmatch__size-footer button:focus-visible {
	border-color: var(--fws-gold);
	color: var(--fws-gold);
	outline: none;
}

.fws-bookmatch__range-scale {
	color: rgba(12, 13, 13, .38);
	display: flex;
	font-size: 6px;
	justify-content: space-between;
	letter-spacing: .08em;
	margin-top: 5px;
	text-transform: uppercase;
}

.fws-bookmatch__range-scale i {
	font-style: normal;
}

.fws-bookmatch__range-note {
	color: rgba(12, 13, 13, .46);
	font-size: 7px;
	line-height: 1.55;
	margin: -4px 0 0;
}

.fws-bookmatch__dimensions-toggle.is-disabled {
	opacity: .5;
}

@media (max-width: 560px) {
	.fws-bookmatch__size-grid {
		grid-template-columns: 1fr;
	}
}

/* 0.9.7 — scelta lastra reale + ritaglio ortogonale automatico */
.fws-bookmatch__source {
	display: grid;
	gap: 12px;
}

.fws-bookmatch__source .fws-bookmatch__label {
	margin-bottom: 0;
}

.fws-bookmatch__source select {
	appearance: none;
	background: var(--fws-paper) linear-gradient(45deg, transparent 50%, var(--fws-black-soft) 50%) calc(100% - 15px) 19px / 5px 5px no-repeat;
	border: 1px solid rgba(12, 13, 13, .22);
	border-radius: 0;
	color: var(--fws-black-soft);
	font-family: var(--fws-ui);
	font-size: 8px;
	letter-spacing: .07em;
	min-height: 46px;
	padding: 0 38px 0 12px;
	text-transform: uppercase;
	width: 100%;
}

.fws-bookmatch__source select:focus-visible {
	border-color: var(--fws-gold);
	outline: 1px solid var(--fws-gold);
	outline-offset: 2px;
}

.fws-bookmatch__auto-crop {
	align-items: center;
	background: rgba(12, 13, 13, .035);
	border: 1px solid rgba(12, 13, 13, .12);
	display: flex;
	gap: 10px;
	min-height: 52px;
	padding: 9px 11px;
}

.fws-bookmatch__auto-crop > span {
	background: rgba(12, 13, 13, .25);
	border-radius: 50%;
	flex: 0 0 8px;
	height: 8px;
	width: 8px;
}

.fws-bookmatch__auto-crop div,
.fws-bookmatch__auto-crop strong,
.fws-bookmatch__auto-crop small {
	display: block;
	min-width: 0;
}

.fws-bookmatch__auto-crop strong {
	font-size: 8px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.fws-bookmatch__auto-crop small {
	color: rgba(12, 13, 13, .5);
	font-size: 7px;
	letter-spacing: .035em;
	line-height: 1.45;
	margin-top: 4px;
}

.fws-bookmatch__auto-crop.is-processing > span {
	animation: fws-bookmatch-pulse .75s ease-in-out infinite alternate;
	background: var(--fws-gold);
}

.fws-bookmatch__auto-crop.is-success {
	border-color: rgba(115, 132, 92, .38);
}

.fws-bookmatch__auto-crop.is-success > span {
	background: #73845c;
}

.fws-bookmatch__auto-crop.is-warning {
	border-color: rgba(185, 154, 98, .62);
}

.fws-bookmatch__auto-crop.is-warning > span {
	background: var(--fws-gold);
}

/* 0.9.9 — polish grafico configuratore */
.fws-bookmatch__controls { padding: 26px 26px 22px; }
.fws-bookmatch__intro { padding-bottom: 20px; }
.fws-bookmatch__intro h2 { font-size: clamp(30px, 2.7vw, 46px); line-height: .94; }
.fws-bookmatch__group { padding: 19px 0; }
.fws-bookmatch__group legend,
.fws-bookmatch__label,
.fws-bookmatch__ranges label > span { font-size: 8px; letter-spacing: .13em; color: rgba(12,13,13,.68); }
.fws-bookmatch__segments span,
.fws-bookmatch__button-row button { font-size: 8.5px; letter-spacing: .09em; }
.fws-bookmatch__ranges { gap: 17px; padding: 20px 0; }
.fws-bookmatch__ranges output { font-size: 9px; font-weight: 600; }
.fws-bookmatch__range-scale { font-size: 6.5px; opacity: .72; }
.fws-bookmatch__dimensions-toggle { min-height: 50px; padding: 9px 11px; }
.fws-bookmatch__dimensions-toggle strong { font-size: 9px; letter-spacing: .1em; }
.fws-bookmatch__dimensions-toggle small { display: none; }
.fws-bookmatch__dimensions-toggle i { width: 30px; height: 30px; font-size: 6.5px; }
.fws-bookmatch__status { font-size: 8px; letter-spacing: .055em; line-height: 1.55; text-transform: none; color: rgba(12,13,13,.7); padding-top: 18px; }
.fws-bookmatch__hint { opacity: .48; letter-spacing: .12em; }
.fws-bookmatch__size-grid label > span:first-child { font-size: 8px; }
.fws-bookmatch__size-grid input { font-size: 17px; font-weight: 500; }
.fws-bookmatch__auto-crop strong { font-size: 8.5px; }
.fws-bookmatch__auto-crop small { font-size: 7px; }

/* 0.9.9 — Dark luxury skin, concept 04 + Faber typography/gold detailing */
.fws-bookmatch {
	color: var(--fws-paper);
	padding: 14px;
}

.fws-bookmatch__backdrop {
	background:
		radial-gradient(circle at 50% 12%, rgba(185, 154, 98, .055), transparent 34%),
		rgba(7, 8, 8, .965);
}

.fws-bookmatch__workspace {
	background: #0d0f10;
	border: 1px solid rgba(185, 154, 98, .22);
	box-shadow: 0 38px 100px rgba(0, 0, 0, .64);
	height: min(940px, calc(100dvh - 28px));
	max-width: 1880px;
	width: min(1880px, calc(100vw - 28px));
}

.fws-bookmatch__header {
	background: linear-gradient(180deg, #0d0f10 0%, #0a0c0d 100%);
	border-bottom: 1px solid rgba(185, 154, 98, .27);
	flex-basis: 72px;
	grid-template-columns: minmax(250px, .72fr) minmax(0, 1fr) 72px;
	min-height: 72px;
}

.fws-bookmatch__brand {
	border-right: 1px solid rgba(185, 154, 98, .18);
}

.fws-bookmatch__brand,
.fws-bookmatch__identity {
	padding: 0 26px;
}

.fws-bookmatch__brand span {
	color: #f0eee8;
	font-family: var(--fws-display);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: -.035em;
}

.fws-bookmatch__brand i,
.fws-bookmatch__identity small {
	color: var(--fws-gold);
	font-size: 7px;
	font-weight: 500;
	letter-spacing: .18em;
}

.fws-bookmatch__identity strong {
	color: #f3f0e9;
	font-family: var(--fws-display);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -.02em;
}

.fws-bookmatch__close {
	border-left: 1px solid rgba(185, 154, 98, .18);
	color: rgba(247, 245, 240, .9);
	font-size: 24px;
	transition: background .2s ease, color .2s ease;
}

.fws-bookmatch__close:hover,
.fws-bookmatch__close:focus-visible {
	background: var(--fws-gold);
	color: #0b0c0c;
}

.fws-bookmatch__body {
	grid-template-columns: minmax(0, 1fr) clamp(360px, 24vw, 430px);
}

.fws-bookmatch__stage {
	background:
		radial-gradient(circle at 48% 42%, rgba(255, 255, 255, .026), transparent 43%),
		linear-gradient(180deg, #121415 0%, #0d0f10 100%);
	padding: 10px 12px 14px;
}

.fws-bookmatch__stage::after {
	border: 1px solid rgba(185, 154, 98, .09);
	content: "";
	inset: 10px;
	pointer-events: none;
	position: absolute;
}

.fws-bookmatch__stage canvas {
	box-shadow: 0 22px 70px rgba(0, 0, 0, .38);
}

.fws-bookmatch__hint {
	bottom: 12px;
	color: rgba(238, 235, 227, .38);
	font-size: 6.5px;
	font-weight: 500;
	letter-spacing: .18em;
}

.fws-bookmatch__controls {
	background:
		radial-gradient(circle at 25% 0%, rgba(255, 255, 255, .025), transparent 26%),
		linear-gradient(180deg, #191b1c 0%, #141617 100%);
	border-left: 1px solid rgba(185, 154, 98, .3);
	box-shadow: inset 14px 0 34px rgba(0, 0, 0, .14);
	color: #f0eee8;
	padding: 30px 30px 24px;
	scrollbar-color: rgba(185, 154, 98, .55) rgba(255, 255, 255, .035);
	scrollbar-width: thin;
}

.fws-bookmatch__controls::-webkit-scrollbar {
	width: 6px;
}

.fws-bookmatch__controls::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, .025);
}

.fws-bookmatch__controls::-webkit-scrollbar-thumb {
	background: rgba(185, 154, 98, .52);
	border-radius: 999px;
}

.fws-bookmatch__intro {
	border-bottom: 1px solid rgba(185, 154, 98, .27);
	padding-bottom: 24px;
}

.fws-bookmatch__intro .fws-eyebrow {
	color: var(--fws-gold);
	font-size: 8px;
	font-weight: 500;
	letter-spacing: .2em;
	margin: 0 0 16px;
	text-transform: uppercase;
}

.fws-bookmatch__intro h2 {
	color: #f2efe9;
	font-family: var(--fws-display);
	font-size: clamp(36px, 2.55vw, 48px);
	font-weight: 400;
	letter-spacing: -.055em;
	line-height: .94;
}

.fws-bookmatch__group {
	border-bottom-color: rgba(185, 154, 98, .18);
	padding: 20px 0;
}

.fws-bookmatch__group legend,
.fws-bookmatch__label,
.fws-bookmatch__ranges label > span {
	color: rgba(220, 190, 133, .88);
	font-size: 8px;
	font-weight: 500;
	letter-spacing: .15em;
	margin-bottom: 11px;
}

.fws-bookmatch__label em {
	color: rgba(239, 236, 228, .42);
}

.fws-bookmatch__segments,
.fws-bookmatch__button-row {
	gap: 7px;
}

.fws-bookmatch__segments span,
.fws-bookmatch__button-row button {
	background: rgba(7, 8, 8, .24);
	border: 1px solid rgba(239, 236, 228, .18);
	color: rgba(239, 236, 228, .78);
	font-size: 8.5px;
	font-weight: 500;
	letter-spacing: .11em;
	min-height: 43px;
	transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.fws-bookmatch__segments input:checked + span {
	background: rgba(185, 154, 98, .06);
	border-color: var(--fws-gold);
	color: #e4c483;
	box-shadow: inset 0 0 0 1px rgba(185, 154, 98, .08);
}

.fws-bookmatch__segments input:focus-visible + span {
	outline-color: var(--fws-gold);
}

.fws-bookmatch__button-row button:hover,
.fws-bookmatch__button-row button:focus-visible {
	background: rgba(185, 154, 98, .055);
	border-color: var(--fws-gold);
	color: #e4c483;
}

.fws-bookmatch__ranges {
	border-bottom: 1px solid rgba(185, 154, 98, .18);
	gap: 22px;
	padding: 21px 0 23px;
}

.fws-bookmatch__ranges label > span {
	color: rgba(239, 236, 228, .62);
	margin-bottom: 10px;
}

.fws-bookmatch__ranges output {
	color: #f4f0e8;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .08em;
}

.fws-bookmatch__ranges input[type="range"] {
	accent-color: var(--fws-gold);
	filter: saturate(.9) brightness(1.04);
}

.fws-bookmatch__range-scale {
	color: rgba(239, 236, 228, .33);
	font-size: 6px;
	letter-spacing: .1em;
	margin-top: 6px;
}

.fws-bookmatch__dimensions-toggle {
	background: rgba(6, 7, 7, .22);
	border-color: rgba(185, 154, 98, .24);
	color: #eeeae2;
	margin-top: 16px;
	min-height: 48px;
	padding: 9px 12px;
}

.fws-bookmatch__dimensions-toggle strong {
	color: rgba(239, 236, 228, .82);
	font-size: 8px;
	font-weight: 500;
	letter-spacing: .13em;
}

.fws-bookmatch__dimensions-toggle i {
	background: transparent;
	border: 1px solid rgba(185, 154, 98, .55);
	border-radius: 999px;
	color: var(--fws-gold);
	height: 24px;
	width: 42px;
}

.fws-bookmatch__dimensions-toggle:hover,
.fws-bookmatch__dimensions-toggle:focus-visible,
.fws-bookmatch__dimensions-toggle.is-active {
	background: rgba(185, 154, 98, .045);
	border-color: var(--fws-gold);
}

.fws-bookmatch__dimensions-toggle.is-active i {
	background: var(--fws-gold);
	border-color: var(--fws-gold);
	color: #0b0c0c;
}

.fws-bookmatch__source {
	gap: 10px;
}

.fws-bookmatch__source select {
	background-color: rgba(6, 7, 7, .28);
	background-image: linear-gradient(45deg, transparent 50%, var(--fws-gold) 50%);
	border-color: rgba(185, 154, 98, .38);
	color: #eeeae3;
	font-size: 8.5px;
	font-weight: 500;
	letter-spacing: .07em;
	min-height: 44px;
}

.fws-bookmatch__source select option {
	background: #17191a;
	color: #f2efe8;
}

.fws-bookmatch__auto-crop {
	background: rgba(185, 154, 98, .035);
	border-color: rgba(185, 154, 98, .32);
	min-height: 50px;
}

.fws-bookmatch__auto-crop > span,
.fws-bookmatch__auto-crop.is-success > span,
.fws-bookmatch__auto-crop.is-warning > span {
	background: var(--fws-gold);
}

.fws-bookmatch__auto-crop.is-success,
.fws-bookmatch__auto-crop.is-warning {
	border-color: rgba(185, 154, 98, .38);
}

.fws-bookmatch__auto-crop strong {
	color: #f0ece4;
	font-size: 8.5px;
	font-weight: 500;
}

.fws-bookmatch__auto-crop small {
	color: rgba(239, 236, 228, .43);
	font-size: 7px;
}

.fws-bookmatch__finished-size {
	border-bottom-color: rgba(185, 154, 98, .18);
	padding-bottom: 18px;
}

.fws-bookmatch__size-grid > label > span:first-child {
	color: rgba(239, 236, 228, .48);
	font-size: 7.5px;
}

.fws-bookmatch__number {
	background: rgba(6, 7, 7, .28);
	border-color: rgba(239, 236, 228, .16);
	min-height: 44px;
}

.fws-bookmatch__number:focus-within {
	border-color: var(--fws-gold);
	box-shadow: inset 0 0 0 1px rgba(185, 154, 98, .08);
}

.fws-bookmatch__number input {
	color: #f5f1e9;
	font-family: var(--fws-display);
	font-size: 18px;
	font-weight: 500;
}

.fws-bookmatch__number input::placeholder {
	color: rgba(239, 236, 228, .24);
}

.fws-bookmatch__number i {
	color: rgba(239, 236, 228, .4);
}

.fws-bookmatch__size-footer small {
	color: rgba(239, 236, 228, .38);
}

.fws-bookmatch__size-footer button {
	border-bottom-color: rgba(185, 154, 98, .42);
	color: rgba(239, 236, 228, .62);
}

.fws-bookmatch__status {
	border-top: 1px solid rgba(185, 154, 98, .16);
	color: rgba(239, 236, 228, .44);
	font-size: 7.5px;
	letter-spacing: .06em;
	margin-top: 18px;
	padding: 15px 0 12px;
}

.fws-bookmatch__actions {
	gap: 8px;
}

.fws-bookmatch__actions button {
	background: rgba(6, 7, 7, .24);
	border-color: rgba(185, 154, 98, .45);
	color: rgba(239, 236, 228, .78);
	font-size: 8px;
	font-weight: 500;
	min-height: 45px;
}

.fws-bookmatch__actions .is-secondary {
	background: transparent;
	color: rgba(239, 236, 228, .7);
}

.fws-bookmatch__actions .is-primary {
	background: rgba(185, 154, 98, .08);
	border-color: var(--fws-gold);
	color: #e7c888;
}

.fws-bookmatch__actions button:hover,
.fws-bookmatch__actions button:focus-visible {
	background: var(--fws-gold);
	border-color: var(--fws-gold);
	color: #0b0c0c;
}

/* Export dialog follows the same dark visual language. */
.fws-bookmatch-export {
	background: rgba(5, 6, 6, .94);
}

.fws-bookmatch-export__card {
	background: linear-gradient(180deg, #1a1c1d 0%, #141617 100%);
	border: 1px solid rgba(185, 154, 98, .34);
	color: #f0ede6;
}

.fws-bookmatch-export__card h3 {
	color: #f2efe8;
}

.fws-bookmatch-export__card > p {
	color: rgba(239, 236, 228, .52);
}

.fws-bookmatch-export__grid button,
.fws-bookmatch-export__close {
	background: rgba(6, 7, 7, .28);
	border-color: rgba(185, 154, 98, .28);
	color: #eeeae2;
}

.fws-bookmatch-export__grid button span {
	color: rgba(239, 236, 228, .42);
}

.fws-bookmatch-export__grid button:hover,
.fws-bookmatch-export__grid button:focus-visible {
	background: rgba(185, 154, 98, .06);
	border-color: var(--fws-gold);
}

.fws-bookmatch-export__close {
	border-color: var(--fws-gold);
	color: #e4c483;
}

@media (max-width: 900px) {
	.fws-bookmatch__controls {
		background: linear-gradient(180deg, #191b1c 0%, #141617 100%);
		border-top: 1px solid rgba(185, 154, 98, .28);
	}

	.fws-bookmatch__actions {
		background: #151718;
		border-top: 1px solid rgba(185, 154, 98, .18);
	}
}

/* 0.16.0 — final responsive readability polish */
@media (max-width: 900px) {
	.fws-bookmatch__stage { flex-basis: min(46dvh, 430px); min-height: 300px; }
	.fws-bookmatch__controls { padding: 28px 18px calc(84px + env(safe-area-inset-bottom)); }
	.fws-bookmatch__intro h2 { font-size: clamp(34px, 9vw, 42px); }
	.fws-bookmatch__group legend,
	.fws-bookmatch__label,
	.fws-bookmatch__ranges label > span { font-size: 9px; }
	.fws-bookmatch__segments span,
	.fws-bookmatch__button-row button,
	.fws-bookmatch__source select,
	.fws-bookmatch__actions button { font-size: 9px; min-height: 46px; }
	.fws-bookmatch__auto-crop strong { font-size: 9px; }
	.fws-bookmatch__auto-crop small,
	.fws-bookmatch__status,
	.fws-bookmatch__range-scale { font-size: 8px; line-height: 1.45; }
	.fws-bookmatch__size-grid > label > span:first-child { font-size: 8.5px; }
	.fws-bookmatch__actions {
		background: #151718;
		bottom: calc(-84px - env(safe-area-inset-bottom));
		margin: 0 -18px;
		padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
		position: sticky;
		z-index: 8;
	}
}

@media (max-width: 560px) {
	.fws-bookmatch__header { grid-template-columns: minmax(104px,.7fr) minmax(0,1fr) 54px; }
	.fws-bookmatch__brand { padding-left: 12px; padding-right: 8px; }
	.fws-bookmatch__identity { padding-inline: 8px; }
	.fws-bookmatch__identity strong { font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.fws-bookmatch__stage { flex-basis: 42dvh; min-height: 270px; }
	.fws-bookmatch__controls { padding-inline: 16px; }
	.fws-bookmatch__actions { margin-inline: -16px; padding-inline: 16px; }
	.fws-bookmatch__size-grid { grid-template-columns: 1fr 1fr; }
}
