/* ==========================================================================
   Frame Designer — front end
   Colors live in the variables below so the look can be matched to the
   Cutting Board Designer by changing a handful of values.
   ========================================================================== */

.fd-app {
	--fd-accent: #c9a24a;
	/* The plugin writes these from the accent color in Settings. */
	--fd-accent-hi: #dcc181;
	--fd-accent-lo: #9d7e3a;
	--fd-accent-a07: rgba(201, 162, 74, 0.07);
	--fd-accent-a14: rgba(201, 162, 74, 0.14);
	--fd-accent-a22: rgba(201, 162, 74, 0.22);
	--fd-accent-a40: rgba(201, 162, 74, 0.4);
	--fd-ink: #1f1811;
	--fd-ink-2: #5d5145;
	--fd-ink-3: #8a7d6f;
	--fd-paper: #faf7f1;
	--fd-card: #ffffff;
	--fd-line: rgba(31, 24, 17, 0.12);
	--fd-line-2: rgba(31, 24, 17, 0.22);
	--fd-dark-a: #1a1209;
	--fd-dark-b: #0f0c06;
	--fd-radius: 14px;
	--fd-radius-sm: 9px;
	--fd-shadow: 0 1px 2px rgba(31, 24, 17, 0.06), 0 8px 24px rgba(31, 24, 17, 0.08);
	--fd-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--fd-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	font-family: var(--fd-sans);
	font-size: 15px;
	line-height: 1.5;
	color: var(--fd-ink);
	background: var(--fd-paper);
	border-radius: var(--fd-radius);
	padding: 22px;
	max-width: 1320px;
	margin: 0 auto 32px;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

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

/* Theme-proofing: themes love to restyle buttons and inputs. Reset them hard
   inside the app, then style our own classes. */
.fd-app button,
.fd-app .fd-btn {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	font-family: var(--fd-sans);
	-webkit-tap-highlight-color: transparent;
}
.fd-app button:focus-visible,
.fd-app .fd-swatch-custom:focus-within {
	outline: 2px solid var(--fd-accent);
	outline-offset: 2px;
}
.fd-app button[disabled] { cursor: default; opacity: 0.35; }
.fd-app [hidden] { display: none !important; }
.fd-app h2, .fd-app h3, .fd-app p, .fd-app dl, .fd-app dd, .fd-app ol { margin: 0; padding: 0; }
.fd-app img { max-width: 100%; height: auto; }
.fd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- buttons */

.fd-app .fd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-align: center;
	transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
	white-space: nowrap;
}
.fd-app .fd-btn-primary {
	background: linear-gradient(180deg, var(--fd-accent-hi), var(--fd-accent) 55%, var(--fd-accent-lo));
	color: #1a1209;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 6px 16px var(--fd-accent-a40);
}
.fd-app .fd-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 22px var(--fd-accent-a40); }
.fd-app .fd-btn-primary:active { transform: translateY(0); }
.fd-app .fd-btn-secondary {
	background: transparent;
	color: var(--fd-ink);
	border: 1.5px solid var(--fd-line-2);
}
.fd-app .fd-btn-secondary:hover { border-color: var(--fd-ink-2); }
.fd-app .fd-btn-block { display: flex; width: 100%; }

.fd-app .fd-link {
	color: var(--fd-accent-lo);
	font-weight: 600;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.fd-app .fd-link-sm { font-size: 13px; }

.fd-app .fd-chip {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--fd-line-2);
	background: var(--fd-card);
	font-size: 13px;
	font-weight: 600;
	color: var(--fd-ink-2);
	transition: all 0.15s ease;
}
.fd-app .fd-chip:hover { border-color: var(--fd-ink-3); color: var(--fd-ink); }
.fd-app .fd-chip.is-on {
	background: var(--fd-ink);
	border-color: var(--fd-ink);
	color: #fff;
}
.fd-app .fd-chip-accent {
	border-color: var(--fd-accent);
	color: var(--fd-accent-lo);
	background: var(--fd-accent-a07);
	margin-top: 10px;
}
.fd-app .fd-chip-dark {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
	color: rgba(255, 244, 225, 0.85);
}
.fd-app .fd-chip-dark:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.fd-app .fd-chip-dark.is-on { background: var(--fd-accent); border-color: var(--fd-accent); color: #1a1209; }

/* ------------------------------------------------------------ breadcrumbs */

.fd-crumbs { margin-bottom: 20px; }
.fd-app .fd-crumbs ol { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.fd-crumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fd-ink-3);
	padding: 5px 12px 5px 8px;
	border-radius: 999px;
}
.fd-crumb + .fd-crumb::before {
	content: "";
	width: 18px;
	height: 1px;
	background: var(--fd-line-2);
	margin-right: 6px;
	margin-left: -10px;
}
.fd-crumb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fd-line-2); flex: none; }
.fd-crumb.is-done { color: var(--fd-ink-2); }
.fd-crumb.is-done .fd-crumb-dot { background: var(--fd-accent); }
.fd-crumb.is-active { background: var(--fd-accent-a22); color: var(--fd-ink); }
.fd-crumb.is-active .fd-crumb-dot { width: 18px; border-radius: 999px; background: var(--fd-accent); }

/* ----------------------------------------------------------- step 1: hero */

.fd-hero {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 28px;
	align-items: stretch;
	background: radial-gradient(120% 140% at 15% 0%, #2b1f12 0%, var(--fd-dark-a) 45%, var(--fd-dark-b) 100%);
	border-radius: var(--fd-radius);
	padding: 44px;
	color: #f6ecd9;
	position: relative;
	overflow: hidden;
}
.fd-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(92deg, rgba(255, 220, 160, 0.025) 0 2px, transparent 2px 9px);
	pointer-events: none;
}
.fd-hero > * { position: relative; z-index: 1; }
.fd-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fd-accent);
	margin-bottom: 10px;
}
.fd-app .fd-title {
	font-family: var(--fd-serif);
	font-weight: 600;
	font-size: clamp(34px, 4.2vw, 52px);
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: inherit;
	margin-bottom: 14px;
}
.fd-app .fd-title-sm { font-size: 34px; margin-bottom: 16px; }
.fd-lede { font-size: 16px; color: rgba(246, 236, 217, 0.78); max-width: 46ch; }
.fd-hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.fd-glass {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 12px;
	padding: 14px;
	font-size: 13px;
	color: rgba(246, 236, 217, 0.85);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.fd-glass strong { font-family: var(--fd-serif); font-size: 24px; line-height: 1; color: var(--fd-accent); }

.fd-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	border-radius: 14px;
	border: 1.5px dashed rgba(255, 230, 190, 0.35);
	background: rgba(255, 255, 255, 0.04);
	padding: 28px;
	transition: all 0.2s ease;
	min-height: 320px;
}
.fd-drop.is-over { border-color: var(--fd-accent); background: var(--fd-accent-a14); }
.fd-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fd-drop-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	cursor: pointer;
}
.fd-drop-icon { color: var(--fd-accent); margin-bottom: 6px; }
.fd-drop-title { font-family: var(--fd-serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.fd-drop-sub { font-size: 13px; color: rgba(246, 236, 217, 0.65); }
.fd-app .fd-drop-btn { margin-top: 12px; }
.fd-drop .fd-link { color: rgba(246, 236, 217, 0.75); font-weight: 500; }
.fd-drop-error {
	font-size: 13px;
	color: #ffd4c2;
	background: rgba(180, 60, 30, 0.25);
	border: 1px solid rgba(255, 140, 110, 0.35);
	padding: 10px 12px;
	border-radius: 8px;
	max-width: 360px;
	text-align: center;
}
.fd-file:focus-visible + .fd-drop-inner .fd-drop-btn { outline: 2px solid var(--fd-accent); outline-offset: 3px; }

/* ---------------------------------------------------------- step 2: build */

.fd-build {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 20px;
	align-items: start;
}
.fd-stage-col { position: sticky; top: 20px; }
.fd-stage {
	background: linear-gradient(180deg, var(--fd-dark-a), var(--fd-dark-b));
	border-radius: var(--fd-radius);
	overflow: hidden;
	box-shadow: var(--fd-shadow);
}
.fd-stage-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	flex-wrap: wrap;
}
.fd-seg {
	display: inline-flex;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	padding: 3px;
}
.fd-app .fd-seg-btn {
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: rgba(246, 236, 217, 0.7);
}
.fd-app .fd-seg-btn.is-on { background: var(--fd-accent); color: #1a1209; }
.fd-walls { display: inline-flex; gap: 6px; margin-left: auto; }
.fd-app .fd-wall {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--c);
	border: 2px solid rgba(255, 255, 255, 0.25);
}
.fd-app .fd-wall.is-on { border-color: var(--fd-accent); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5); }

.fd-canvas-wrap {
	position: relative;
	height: min(68vh, 640px);
	min-height: 360px;
}
.fd-flat, .fd-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fd-3d canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.fd-3d-hint, .fd-3d-fallback {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	font-size: 12px;
	color: rgba(246, 236, 217, 0.75);
	background: rgba(0, 0, 0, 0.45);
	padding: 5px 12px;
	border-radius: 999px;
	pointer-events: none;
	white-space: nowrap;
}
.fd-stage-meta {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	padding: 10px 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	font-size: 13px;
	color: rgba(246, 236, 217, 0.75);
	font-variant-numeric: tabular-nums;
}
.fd-meta-warn { color: var(--fd-accent-hi); }

/* Panel */
.fd-panel { display: flex; flex-direction: column; gap: 12px; }
.fd-sec {
	background: var(--fd-card);
	border: 1px solid var(--fd-line);
	border-radius: var(--fd-radius);
	padding: 16px;
	box-shadow: 0 1px 2px rgba(31, 24, 17, 0.04);
}
.fd-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fd-app .fd-sec h3 {
	font-family: var(--fd-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--fd-ink);
}
.fd-sec-val { font-size: 13px; color: var(--fd-ink-3); font-weight: 500; }
.fd-help { font-size: 13px; color: var(--fd-ink-3); margin-bottom: 10px; }
.fd-sub { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fd-ink-2); margin: 14px 0 8px; }
.fd-sub .fd-sec-val { text-transform: none; letter-spacing: 0; margin-left: 6px; }

/* Stepper */
.fd-stepper { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fd-stepper-label { font-size: 12px; font-weight: 600; color: var(--fd-ink-3); }
.fd-stepper-ctl {
	display: flex;
	align-items: center;
	background: var(--fd-paper);
	border: 1px solid var(--fd-line-2);
	border-radius: 999px;
	height: 44px;
	padding: 3px;
}
.fd-app .fd-step-btn {
	width: 36px;
	height: 36px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 20px;
	font-weight: 500;
	color: var(--fd-ink);
	background: var(--fd-card);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
	user-select: none;
	touch-action: manipulation;
}
.fd-app .fd-step-btn:active { background: var(--fd-accent-a22); }
.fd-app .fd-step-val, .fd-app .fd-step-input {
	flex: 1;
	min-width: 0;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--fd-ink);
	cursor: text;
}
.fd-app .fd-step-input {
	all: unset;
	flex: 1;
	min-width: 0;
	text-align: center;
	font: 700 17px var(--fd-sans);
	color: var(--fd-ink);
	background: #fff;
	border-radius: 999px;
	height: 36px;
	margin: 0 4px;
	box-shadow: 0 0 0 2px var(--fd-accent) inset;
}
.fd-dim-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.fd-app .fd-swap {
	width: 34px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: var(--fd-ink-2);
	border-radius: 8px;
}
.fd-app .fd-swap:hover { color: var(--fd-ink); background: var(--fd-paper); }
.fd-stepper-wide { max-width: 240px; }

.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.fd-chips-sm .fd-chip { min-height: 30px; padding: 0 10px; }
.fd-chips-label { font-size: 12px; font-weight: 600; color: var(--fd-ink-3); margin-right: 2px; }
.fd-mat-each { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.fd-mat-each .fd-step-btn { width: 30px; height: 30px; font-size: 17px; }
.fd-mat-each .fd-stepper-ctl { height: 38px; }
.fd-mat-each .fd-step-val { font-size: 14px; }
#fd-mat-each-toggle { display: inline-block; margin-top: 10px; }

/* Woods */
.fd-woods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fd-app .fd-wood {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px 6px 9px;
	border-radius: 11px;
	border: 1.5px solid var(--fd-line);
	background: var(--fd-card);
	transition: all 0.15s ease;
}
.fd-app .fd-wood:hover { border-color: var(--fd-line-2); }
.fd-app .fd-wood.is-on { border-color: var(--fd-accent); box-shadow: 0 0 0 3px var(--fd-accent-a22); }
.fd-wood-img { display: block; height: 46px; border-radius: 7px; background-size: cover; background-position: center; margin-bottom: 6px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 1px 3px rgba(0, 0, 0, 0.25); }
/* Profiles share the wood card look, with a cross-section drawing on a light plate */
.fd-app .fd-profile {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px 6px 9px;
	border-radius: 11px;
	border: 1.5px solid var(--fd-line);
	background: var(--fd-card);
	transition: all 0.15s ease;
}
.fd-app .fd-profile:hover { border-color: var(--fd-line-2); }
.fd-app .fd-profile.is-on { border-color: var(--fd-accent); box-shadow: 0 0 0 3px var(--fd-accent-a22); }
.fd-profile-img {
	display: block;
	height: 64px;
	border-radius: 7px;
	margin-bottom: 6px;
	background: var(--fd-paper) no-repeat center / contain;
}
.fd-profile .fd-profile-price { font-weight: 600; color: var(--fd-ink-2); }
.fd-wood-name { font-weight: 700; font-size: 14px; padding: 0 3px; }
.fd-wood-meta { font-size: 12px; color: var(--fd-ink-3); padding: 0 3px; }

/* Mat */
.fd-app .fd-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fd-ink-2);
}
.fd-toggle-knob {
	position: relative;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: var(--fd-line-2);
	transition: background 0.2s ease;
	flex: none;
}
.fd-toggle-knob::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease;
}
.fd-toggle[aria-checked="true"] .fd-toggle-knob { background: var(--fd-accent); }
.fd-toggle[aria-checked="true"] .fd-toggle-knob::after { transform: translateX(18px); }
.fd-double {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--fd-line);
	font-weight: 600;
	font-size: 14px;
}
#fd-double-body .fd-stepper { margin-top: 12px; }

.fd-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-app .fd-swatch {
	position: relative;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--c, #eee);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 1px 2px rgba(0, 0, 0, 0.1);
	transition: transform 0.12s ease;
}
.fd-app .fd-swatch:hover { transform: translateY(-1px); }
.fd-app .fd-swatch.is-on { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 0 2px var(--fd-card), 0 0 0 4px var(--fd-accent); }
.fd-app .fd-swatch-custom {
	display: flex;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	background: conic-gradient(from 0deg, #e57373, #ffd54f, #81c784, #4fc3f7, #9575cd, #e57373);
	overflow: hidden;
}
.fd-app .fd-swatch-custom.is-on { background: var(--c); }
.fd-swatch-custom span { font-size: 18px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); pointer-events: none; }
.fd-swatch-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }

/* Glazing */
.fd-glazing { display: flex; flex-direction: column; gap: 6px; }
.fd-app .fd-glaze {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1.5px solid var(--fd-line);
	background: var(--fd-card);
}
.fd-app .fd-glaze.is-on { border-color: var(--fd-accent); background: var(--fd-accent-a07); }
.fd-glaze-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--fd-line-2); flex: none; margin-top: 1px; }
.fd-glaze.is-on .fd-glaze-dot { border: 5px solid var(--fd-accent); }
.fd-glaze-text { display: flex; flex-direction: column; font-size: 14px; }
.fd-glaze-text small { font-size: 12px; color: var(--fd-ink-3); }

/* Price */
.fd-price-card {
	background: linear-gradient(180deg, var(--fd-dark-a), var(--fd-dark-b));
	color: #f6ecd9;
	border-radius: var(--fd-radius);
	padding: 16px;
	box-shadow: var(--fd-shadow);
}
.fd-price-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fd-price-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246, 236, 217, 0.65); }
.fd-price-total { font-family: var(--fd-serif); font-size: 34px; font-weight: 700; color: var(--fd-accent-hi); font-variant-numeric: tabular-nums; }
.fd-price-card .fd-link { color: rgba(246, 236, 217, 0.7); display: inline-block; margin: 2px 0 12px; }
.fd-app .fd-price-lines { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; font-size: 13px; }
.fd-price-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.fd-price-lines dt { color: inherit; opacity: 0.8; }
.fd-price-lines dd { font-variant-numeric: tabular-nums; }
.fd-price-lines .fd-total { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 6px; margin-top: 4px; font-weight: 700; }
.fd-price-lines .fd-total dt { opacity: 1; }
.fd-no-prices .fd-price-top, .fd-no-prices .fd-price-more, .fd-no-prices .fd-price-lines, .fd-no-prices .fd-mobile-price { display: none !important; }

/* Step nav */
.fd-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--fd-line);
}
.fd-nav > :first-child { justify-self: start; }
.fd-nav > :last-child { justify-self: end; }
.fd-nav-step { font-size: 13px; color: var(--fd-ink-3); font-weight: 600; }
.fd-mobile-bar { display: none; }

/* --------------------------------------------------------- step 3: review */

.fd-review { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.fd-review-art {
	background: linear-gradient(180deg, var(--fd-dark-a), var(--fd-dark-b));
	border-radius: var(--fd-radius);
	overflow: hidden;
	position: sticky;
	top: 20px;
}
.fd-review-art img { display: block; width: 100%; }
.fd-app .fd-specs { display: flex; flex-direction: column; margin-bottom: 18px; border-top: 1px solid var(--fd-line); }
.fd-specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--fd-line); font-size: 14px; }
.fd-specs dt { color: var(--fd-ink-3); }
.fd-specs dd { font-weight: 600; text-align: right; }
.fd-app .fd-price-lines-open { background: var(--fd-card); border: 1px solid var(--fd-line); border-radius: 12px; padding: 12px 14px; }
.fd-price-lines-open .fd-total { border-top-color: var(--fd-line); font-size: 16px; }
.fd-price-lines-open:empty { display: none; }

.fd-form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.fd-app .fd-form h3 { font-family: var(--fd-serif); font-size: 24px; font-weight: 600; }
.fd-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--fd-ink-2); }
.fd-field em { font-style: normal; font-weight: 400; color: var(--fd-ink-3); }
.fd-app .fd-field input, .fd-app .fd-field textarea {
	all: unset;
	box-sizing: border-box;
	width: 100%;
	font: 400 16px/1.4 var(--fd-sans);
	color: var(--fd-ink);
	background: var(--fd-card);
	border: 1px solid var(--fd-line-2);
	border-radius: 10px;
	padding: 11px 13px;
}
.fd-app .fd-field textarea { min-height: 84px; white-space: pre-wrap; }
.fd-app .fd-field input:focus, .fd-app .fd-field textarea:focus { border-color: var(--fd-accent); box-shadow: 0 0 0 3px var(--fd-accent-a22); }
.fd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fd-form-error { font-size: 14px; color: #9c2b17; background: #fdecea; border-radius: 8px; padding: 10px 12px; }
.fd-fine { font-size: 12px; color: var(--fd-ink-3); text-align: center; }
.fd-done { text-align: center; padding: 28px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fd-done-mark {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--fd-accent);
	color: #1a1209;
	font-size: 28px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fd-app .fd-done h3 { font-family: var(--fd-serif); font-size: 28px; font-weight: 600; }
.fd-done p { color: var(--fd-ink-2); max-width: 40ch; margin-bottom: 8px; }

/* ---------------------------------------------------------- photo upload */

.fd-drop-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fd-app .fd-camera-btn { display: none; }
.fd-drop-tip { font-size: 12.5px; line-height: 1.5; color: rgba(246, 236, 217, 0.62); text-align: center; max-width: 36ch; }
.fd-photo-links { display: inline-flex; gap: 14px; }

/* Phones and tablets: the camera is the main way in */
@media (hover: none) and (pointer: coarse) {
	.fd-app .fd-camera-btn { display: inline-flex; }
	.fd-app .fd-choose-btn {
		background: transparent;
		color: #f6ecd9;
		border: 1.5px solid rgba(246, 236, 217, 0.45);
		box-shadow: none;
	}
	.fd-drop-sub-desk { display: none; }
}

/* ------------------------------------------------------- corner adjuster */

.fd-adjust { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 12, 6, 0.72); }
.fd-adjust-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(980px, 100%);
	height: min(860px, calc(100vh - 32px));
	background: var(--fd-paper);
	border-radius: var(--fd-radius);
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.fd-adjust-head { padding: 18px 60px 12px 20px; }
.fd-app .fd-adjust-head h3 { font-family: var(--fd-serif); font-size: 26px; font-weight: 600; margin-bottom: 4px; }
.fd-adjust-head p { font-size: 14px; color: var(--fd-ink-2); max-width: 62ch; }
.fd-adjust-stage { position: relative; flex: 1; min-height: 0; background: #14100a; touch-action: none; user-select: none; -webkit-user-select: none; }
.fd-adjust-canvas { position: absolute; inset: 0; display: block; }
.fd-app .fd-adjust-handle {
	position: absolute;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	cursor: grab;
	touch-action: none;
	z-index: 2;
}
.fd-app .fd-adjust-handle::after {
	content: "";
	position: absolute;
	inset: 11px;
	border-radius: 50%;
	background: var(--fd-accent);
	border: 3px solid #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.fd-app .fd-adjust-handle.is-drag { cursor: grabbing; }
.fd-app .fd-adjust-handle.is-drag::after { inset: 15px; opacity: 0.35; }
.fd-adjust-loupe { position: absolute; width: 116px; height: 116px; border-radius: 50%; pointer-events: none; z-index: 3; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
.fd-adjust-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px 0; }
.fd-adjust-tools .fd-form-error { flex-basis: 100%; }
.fd-adjust-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; }

@media (max-width: 880px) {
	.fd-adjust { padding: 0; }
	.fd-adjust-card { width: 100%; height: 100%; border-radius: 0; }
	.fd-adjust-head { padding: 14px 56px 8px 16px; }
	.fd-app .fd-adjust-head h3 { font-size: 22px; }
	.fd-adjust-head p { font-size: 13px; }
	.fd-adjust-tools { padding: 10px 16px 0; }
	.fd-adjust-foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
	.fd-adjust-foot .fd-btn { flex: 1; padding: 0 12px; font-size: 14px; }
}

/* ---------------------------------------------------------------- service */

.fd-sec-service { border: 1.5px solid var(--fd-accent-a40); }
.fd-services { display: flex; flex-direction: column; gap: 8px; }
.fd-app .fd-service {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 11px;
	border: 1.5px solid var(--fd-line);
	background: var(--fd-card);
}
.fd-app .fd-service.is-on { border-color: var(--fd-accent); background: var(--fd-accent-a07); box-shadow: 0 0 0 3px var(--fd-accent-a22); }
.fd-service.is-on .fd-glaze-dot { border: 5px solid var(--fd-accent); }
.fd-service-text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.fd-service-text small { font-size: 13px; color: var(--fd-ink-3); line-height: 1.4; }
#fd-mount-body .fd-sub { margin-top: 16px; }
.fd-warn, .fd-note { font-size: 13px; line-height: 1.45; border-radius: 9px; padding: 9px 11px; margin: -2px 0 12px; }
.fd-warn { background: #fdf3dc; color: #6b4e12; border: 1px solid #efd9a4; }
.fd-note { background: var(--fd-paper); color: var(--fd-ink-2); margin-top: 12px; }

.fd-app .fd-delivery { border: 0; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fd-delivery legend { font-family: var(--fd-serif); font-size: 24px; font-weight: 600; padding: 0; margin-bottom: 10px; color: var(--fd-ink); }
.fd-radio { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--fd-line-2); background: var(--fd-card); cursor: pointer; }
.fd-radio:has(input:checked) { border-color: var(--fd-accent); background: var(--fd-accent-a07); }
.fd-radio input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--fd-accent); flex: none; }
.fd-radio span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.fd-radio small { font-size: 13px; color: var(--fd-ink-3); }

/* ---------------------------------------------------------------- contact */

/* Top bar: progress on the left, "Questions? Contact us" on the right, on every step */
.fd-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.fd-topbar .fd-crumbs { margin-bottom: 0; }
.fd-topbar-help { display: flex; align-items: center; gap: 10px; }
.fd-topbar-q { font-family: var(--fd-serif); font-size: 20px; font-weight: 600; color: var(--fd-ink); }

/* The button: solid and high-contrast so it reads as a real action */
.fd-app .fd-btn-contact,
.fd-app a.fd-btn-contact {
	min-height: 46px;
	padding: 0 20px;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	background: var(--fd-ink);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(31, 24, 17, 0.22);
}
.fd-app .fd-btn-contact:hover { background: #3a2d20; transform: translateY(-1px); }
.fd-app .fd-btn-contact svg { color: var(--fd-accent); flex: none; }

.fd-contact { display: flex; align-items: center; gap: 14px 18px; }
.fd-contact-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.fd-contact-prompt { font-family: var(--fd-serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.fd-contact-sub { font-size: 13px; line-height: 1.45; }

/* In the dark welcome banner */
.fd-contact-hero {
	margin-top: 14px;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--fd-accent-a14);
	border: 1px solid var(--fd-accent-a40);
	color: #f6ecd9;
}
.fd-contact-hero .fd-contact-sub { color: rgba(246, 236, 217, 0.72); }
.fd-app .fd-contact-hero .fd-btn-contact { background: #f6ecd9; color: #1a1209; box-shadow: none; }
.fd-app .fd-contact-hero .fd-btn-contact:hover { background: #fff; }
.fd-app .fd-contact-hero .fd-btn-contact svg { color: var(--fd-accent-lo); }

/* In the design options and on the review step */
.fd-contact-panel,
.fd-contact-review {
	flex-direction: column;
	align-items: stretch;
	text-align: left;
	padding: 18px;
	border-radius: var(--fd-radius);
	background: var(--fd-accent-a14);
	border: 1.5px solid var(--fd-accent-a40);
	color: var(--fd-ink);
}
.fd-contact-panel .fd-contact-sub,
.fd-contact-review .fd-contact-sub { color: var(--fd-ink-2); }
.fd-app .fd-contact-panel .fd-btn-contact,
.fd-app .fd-contact-review .fd-btn-contact { width: 100%; }
.fd-contact-review { margin-top: 20px; }

/* Phone bottom bar */
.fd-app .fd-btn-contact-bar { display: none; }

.fd-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fd-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 12, 6, 0.62); }
.fd-modal-card {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: var(--fd-paper);
	border-radius: var(--fd-radius);
	padding: 22px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.fd-modal-card .fd-form { margin-top: 0; }
.fd-app .fd-modal-x {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 24px;
	color: var(--fd-ink-2);
}
.fd-app .fd-modal-x:hover { background: var(--fd-line); color: var(--fd-ink); }
.fd-attach { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fd-ink-2); cursor: pointer; }
.fd-attach input { width: 18px; height: 18px; accent-color: var(--fd-accent); margin: 0; }
html.fd-modal-open, html.fd-modal-open body { overflow: hidden; }

@media (max-width: 880px) {
	.fd-modal { align-items: flex-end; padding: 0; }
	.fd-modal-card { max-width: none; border-radius: var(--fd-radius) var(--fd-radius) 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
	.fd-build { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 880px) {
	.fd-app { padding: 14px; border-radius: 0; margin-bottom: 0; }
	/* Phones: headline, then straight to the upload box; steps and contact follow. */
	.fd-hero { display: flex; flex-direction: column; padding: 26px 20px; gap: 18px; }
	.fd-hero-text { display: contents; }
	.fd-hero-text > .fd-eyebrow { order: 1; margin-bottom: -14px; }
	.fd-hero-text > .fd-title { order: 2; margin-bottom: -6px; }
	.fd-hero-text > .fd-lede { order: 3; }
	.fd-hero > .fd-drop { order: 4; }
	.fd-hero-text > .fd-hero-cards { order: 5; margin-top: 0; }
	.fd-hero-text > .fd-contact-hero { order: 6; margin-top: 0; }
	.fd-hero-cards { grid-template-columns: 1fr; }
	.fd-glass { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; }
	.fd-drop { min-height: 0; padding: 24px 16px; }
	.fd-build { grid-template-columns: 1fr; }
	.fd-stage-col { position: sticky; top: 0; z-index: 5; margin: 0 -14px; }
	.fd-stage { border-radius: 0; }
	.fd-canvas-wrap { height: 38vh; min-height: 240px; }
	.fd-stage-meta { padding: 7px 12px; font-size: 12px; }
	.fd-price-card { display: none; }
	.fd-step-build .fd-nav { display: none; }
	.fd-mobile-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		position: sticky;
		bottom: 0;
		z-index: 6;
		margin: 14px -14px -14px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: linear-gradient(180deg, var(--fd-dark-a), var(--fd-dark-b));
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
	}
	.fd-mobile-price { font-family: var(--fd-serif); font-size: 28px; font-weight: 700; color: var(--fd-accent-hi); }
	.fd-mobile-price { margin-right: auto; }
	.fd-app .fd-btn-contact-bar {
		display: inline-flex;
		min-height: 46px;
		padding: 0 14px;
		background: #f6ecd9;
		color: #1a1209;
		box-shadow: none;
	}
	.fd-app .fd-btn-contact-bar svg { color: var(--fd-accent-lo); }
	.fd-mobile-bar .fd-btn-primary { padding: 0 16px; }
	.fd-contact-hero { flex-direction: column; align-items: stretch; }
	.fd-app .fd-contact-hero .fd-btn-contact { width: 100%; }
	.fd-review { grid-template-columns: 1fr; }
	.fd-review-art { position: static; }
}

@media (max-width: 480px) {
	.fd-topbar-q { display: none; }
	.fd-app .fd-btn-contact-top { min-height: 40px; padding: 0 14px; font-size: 14px; }
	.fd-mobile-price { font-size: 22px; }
	.fd-mobile-bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
	.fd-app .fd-mobile-bar .fd-btn { min-height: 44px; font-size: 14px; padding: 0 12px; }
	.fd-app .fd-mobile-bar .fd-btn-contact-bar { gap: 6px; }
	.fd-crumb:not(.is-active) .fd-crumb-label { display: none; }
	.fd-crumb + .fd-crumb::before { width: 10px; }
	.fd-app .fd-title { font-size: 34px; }
	.fd-woods { grid-template-columns: repeat(2, 1fr); }
	.fd-stage-bar { gap: 8px; padding: 10px; }
	.fd-app .fd-wall { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.fd-app * { transition: none !important; }
}
