.oib-tool,
.oib-configurator {

	--oib-ink: #203229;
	--oib-muted: #657068;
	--oib-forest: #285f49;
	--oib-forest-deep: #1c4736;
	--oib-sage: #c9d3bd;
	--oib-cream: #f3f0e6;
	--oib-surface: #f8f5ec;
	--oib-surface-2: #ebe9df;
	--oib-line: rgba(38, 62, 50, .17);
	--oib-accent: #bb6546;
	box-sizing: border-box;
	border: 1px solid var(--oib-line);
	border-radius: 1.25rem;
	background: var(--oib-cream);
	color: var(--oib-ink);
	padding: clamp(1rem, 3vw, 2.25rem);
}

.oib-tool *,
.oib-configurator * {
	box-sizing: border-box;
}

.oib-tool__form,
.oib-configurator__form {
	display: grid;
	gap: 1rem;
}

.oib-tool__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 9.5rem;
	gap: 1.25rem;
	align-items: center;
	margin-bottom: 1.35rem;
}

.oib-tool__header h2 {
	max-width: 28ch;
	margin: .55rem 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 4vw, 3.15rem);
	font-weight: 500;
	letter-spacing: -.035em;
	line-height: 1;
}

.oib-tool__number {
	color: var(--oib-accent);
	font-family: Georgia, "Times New Roman", serif;
	font-size: .8rem;
}

.oib-tool-visual {
	position: relative;
	overflow: hidden;
	width: 9.5rem;
	height: 7rem;
	border: 1px solid var(--oib-line);
	border-radius: 1.15rem;
	background: color-mix(in srgb, var(--oib-sage) 24%, var(--oib-surface-2));
}

.oib-tool-visual::after {
	content: "";
	position: absolute;
	right: .75rem;
	bottom: .65rem;
	left: .75rem;
	height: 1px;
	background: color-mix(in srgb, var(--oib-forest) 34%, transparent);
}

.oib-tool-visual--img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.oib-tool-visual i,
.oib-tool-visual b,
.oib-tool-visual span {
	position: absolute;
	display: block;
	box-sizing: border-box;
}

.oib-tool-visual--calendar i { left: 24%; top: 22%; width: 52%; height: 52%; border: 2px solid var(--oib-forest); border-radius: .4rem; background: repeating-linear-gradient(90deg, transparent 0 25%, color-mix(in srgb, var(--oib-forest) 22%, transparent) 25% 27%), repeating-linear-gradient(0deg, transparent 0 29%, color-mix(in srgb, var(--oib-forest) 22%, transparent) 29% 32%); }
.oib-tool-visual--calendar b { left: 24%; right: 24%; top: 34%; height: 2px; background: var(--oib-forest); }
.oib-tool-visual--calendar span { left: 36%; top: 16%; width: .25rem; height: .8rem; border-radius: 3px; background: var(--oib-accent); box-shadow: 2.45rem 0 var(--oib-accent); }
.oib-tool-visual--sun i { left: 36%; top: 20%; width: 28%; aspect-ratio: 1; border-radius: 50%; background: #d5a849; box-shadow: 0 0 0 .55rem color-mix(in srgb, #d5a849 18%, transparent); }
.oib-tool-visual--sun b { left: 20%; right: 20%; bottom: 24%; height: 14%; border-radius: 50% 50% 0 0; background: var(--oib-sage); transform: skewX(-18deg); }
.oib-tool-visual--sun span { left: 49%; top: 8%; width: 2px; height: .6rem; background: #d5a849; box-shadow: 2.3rem 1.2rem #d5a849, -2.3rem 1.2rem #d5a849; }
.oib-tool-visual--measure i { left: 19%; top: 28%; width: 62%; height: 23%; border: 2px solid var(--oib-forest); border-radius: .35rem; background: repeating-linear-gradient(90deg, transparent 0 12%, var(--oib-forest) 12% 14%); transform: rotate(-7deg); }
.oib-tool-visual--measure b { left: 29%; top: 55%; width: 42%; height: 15%; border: 2px solid var(--oib-accent); border-top: 0; border-radius: 0 0 .5rem .5rem; }
.oib-tool-visual--volume i { left: 27%; top: 22%; width: 46%; height: 52%; border: 2px solid var(--oib-forest); border-radius: .3rem .3rem .7rem .7rem; background: linear-gradient(0deg, color-mix(in srgb, var(--oib-sage) 70%, transparent) 0 52%, transparent 52%); }
.oib-tool-visual--volume b { left: 27%; top: 20%; width: 46%; height: .55rem; border: 2px solid var(--oib-forest); border-radius: 50%; background: var(--oib-surface); }
.oib-tool-visual--water i { left: 38%; top: 17%; width: 25%; height: 42%; border-radius: 55% 55% 58% 58% / 72% 72% 36% 36%; background: #6b9cab; transform: rotate(45deg); }
.oib-tool-visual--water b { left: 24%; right: 21%; bottom: 24%; height: .45rem; border: solid #6b9cab; border-width: 2px 0; border-radius: 50%; }
.oib-tool-visual--grid i { left: 25%; top: 20%; width: 50%; height: 54%; background: radial-gradient(circle, var(--oib-forest) 0 .27rem, transparent .3rem) 0 0 / 33.333% 50%; }
.oib-tool-visual--overlap i,
.oib-tool-visual--overlap b { top: 24%; width: 38%; aspect-ratio: 1; border: 2px solid var(--oib-forest); border-radius: 50%; background: color-mix(in srgb, var(--oib-sage) 28%, transparent); }
.oib-tool-visual--overlap i { left: 21%; }
.oib-tool-visual--overlap b { right: 21%; border-color: var(--oib-accent); background: color-mix(in srgb, var(--oib-accent) 18%, transparent); }
.oib-tool-visual--cycle i { left: 27%; top: 20%; width: 46%; aspect-ratio: 1; border: 3px solid var(--oib-forest); border-left-color: transparent; border-radius: 50%; }
.oib-tool-visual--cycle b { left: 21%; top: 46%; width: 0; height: 0; border: .4rem solid transparent; border-right-color: var(--oib-forest); transform: rotate(22deg); }
.oib-tool-visual--cycle span { right: 21%; top: 29%; width: 0; height: 0; border: .4rem solid transparent; border-left-color: var(--oib-accent); transform: rotate(22deg); }
.oib-tool-visual--layers i { left: 21%; right: 21%; bottom: 24%; height: 14%; border-radius: 50%; background: #9d7253; box-shadow: 0 -.75rem 0 #c09a72, 0 -1.5rem 0 var(--oib-sage); }
.oib-tool-visual--growth i { left: 49%; top: 31%; width: 3px; height: 39%; background: var(--oib-forest); }
.oib-tool-visual--growth b,
.oib-tool-visual--growth span { top: 25%; width: 26%; height: 25%; border-radius: 80% 12% 80% 12%; background: var(--oib-sage); }
.oib-tool-visual--growth b { left: 23%; transform: rotate(20deg); }
.oib-tool-visual--growth span { right: 22%; background: #6f986d; transform: scaleX(-1) rotate(20deg); }
.oib-tool-visual--trellis i { left: 29%; top: 17%; width: 42%; height: 58%; border: solid var(--oib-forest); border-width: 0 2px; background: repeating-linear-gradient(0deg, transparent 0 .8rem, color-mix(in srgb, var(--oib-forest) 62%, transparent) .8rem .95rem); }
.oib-tool-visual--trellis b { left: 45%; top: 31%; width: 24%; height: 32%; border: solid var(--oib-sage); border-width: 0 0 3px 3px; border-radius: 0 0 0 80%; transform: rotate(-28deg); }
.oib-tool-visual--shield i { left: 33%; top: 17%; width: 34%; height: 57%; border: 2px solid var(--oib-forest); border-radius: 1rem 1rem 1.4rem 1.4rem; background: color-mix(in srgb, var(--oib-sage) 24%, transparent); clip-path: polygon(0 0, 100% 0, 92% 68%, 50% 100%, 8% 68%); }
.oib-tool-visual--shield b { left: 48%; top: 31%; width: .5rem; height: 1.3rem; border: solid var(--oib-accent); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.oib-tool-visual--inspect i { left: 29%; top: 17%; width: 34%; aspect-ratio: 1; border: 3px solid var(--oib-forest); border-radius: 50%; }
.oib-tool-visual--inspect b { left: 60%; top: 55%; width: 24%; height: 3px; border-radius: 3px; background: var(--oib-forest); transform: rotate(45deg); transform-origin: left center; }
.oib-tool-visual--inspect span { left: 39%; top: 30%; width: .45rem; height: .45rem; border-radius: 50%; background: var(--oib-accent); box-shadow: 1rem .65rem var(--oib-sage); }
.oib-tool-visual--scale i { left: 49%; top: 17%; width: 3px; height: 57%; background: var(--oib-forest); }
.oib-tool-visual--scale b { left: 24%; top: 31%; width: 52%; height: 3px; background: var(--oib-forest); }
.oib-tool-visual--scale span { left: 21%; top: 37%; width: 22%; height: 18%; border: 2px solid var(--oib-accent); border-top: 0; border-radius: 0 0 50% 50%; box-shadow: 3.7rem 0 0 -2px var(--oib-surface), 3.7rem 0 0 0 var(--oib-accent); }

.oib-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
	gap: .8rem;
}

.oib-field {
	display: grid;
	gap: .4rem;
	margin: 0;
}

.oib-field label,
.oib-configurator legend {
	font-size: .79rem;
	font-weight: 750;
}

.oib-field input,
.oib-field select,
.oib-tool button,
.oib-configurator button {
	font: inherit;
}

.oib-field input,
.oib-field select {
	width: 100%;
	min-height: 2.75rem;
	border: 1px solid var(--oib-line);
	border-radius: .7rem;
	background: var(--oib-surface);
	color: var(--oib-ink);
	padding: .6rem .75rem;
}

.oib-tool button,
.oib-configurator__submit,
.oib-pdf-form button {
	min-height: 2.75rem;
	border: 1px solid var(--oib-forest-deep);
	border-radius: 999px;
	background: var(--oib-forest);
	color: #fff;
	font-weight: 800;
	padding: .65rem 1rem;
	cursor: pointer;
}

.oib-tool__result {
	border-top: 3px solid var(--oib-forest);
	margin-top: 1.5rem;
	padding-top: 1rem;
}

.oib-configurator__intro {
	max-width: 55rem;
	margin-bottom: 1.65rem;
}

.oib-configurator__intro h2,
.oib-configurator__intro p {
	margin: 0;
}

.oib-configurator__intro h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.15rem, 5vw, 4.3rem);
	font-weight: 500;
	letter-spacing: -.045em;
	line-height: .98;
}

.oib-configurator__intro > p:last-child {
	max-width: 44rem;
	margin-top: .9rem;
	color: var(--oib-muted);
	line-height: 1.65;
}

.oib-configurator__kicker {
	margin: 0 0 .65rem !important;
	color: var(--oib-forest-deep);
	font-size: .7rem;
	font-weight: 850;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.oib-configurator__workspace {
	display: grid;
	grid-template-columns: minmax(18rem, .72fr) minmax(32rem, 1.55fr);
	gap: 1rem;
	align-items: start;
}

.oib-configurator__form,
.oib-configurator__visual,
.oib-configurator__result {
	border: 1px solid var(--oib-line);
	border-radius: 1.05rem;
	background: var(--oib-surface);
}

.oib-configurator__form {
	padding: clamp(1rem, 2.5vw, 1.55rem);
}

.oib-configurator__step + .oib-configurator__step {
	border-top: 1px solid var(--oib-line);
	margin-top: .55rem;
	padding-top: 1.45rem;
}

.oib-configurator__step-heading {
	display: flex;
	gap: .75rem;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.oib-configurator__step-heading > span {
	display: grid;
	flex: 0 0 1.8rem;
	width: 1.8rem;
	height: 1.8rem;
	place-items: center;
	border-radius: 50%;
	background: var(--oib-forest);
	color: #fff;
	font-size: .72rem;
	font-weight: 850;
}

.oib-configurator__step-heading h3,
.oib-configurator__step-heading p {
	margin: 0;
}

.oib-configurator__step-heading h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	font-weight: 500;
}

.oib-configurator__step-heading p,
.oib-shape-note {
	margin-top: .25rem;
	color: var(--oib-muted);
	font-size: .72rem;
	line-height: 1.45;
}

.oib-shape-switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .55rem;
	border: 0;
	margin: 0 0 .8rem;
	padding: 0;
}

.oib-shape-switch label {
	display: flex;
	min-height: 3.25rem;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	border: 1px solid var(--oib-line);
	border-radius: .75rem;
	background: var(--oib-surface-2);
	font-size: .78rem;
	font-weight: 800;
	cursor: pointer;
}

.oib-shape-switch label:has(input:checked) {
	border-color: var(--oib-forest);
	background: color-mix(in srgb, var(--oib-sage) 45%, var(--oib-surface));
}

.oib-shape-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.oib-shape-icon {
	display: inline-block;
	border: 2px solid currentColor;
}

.oib-shape-icon--square { width: 1.05rem; height: 1.05rem; }
.oib-shape-icon--rectangle { width: 1.35rem; height: .85rem; }

.oib-configurator__measure-grid .oib-field > span {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	border: 1px solid var(--oib-line);
	border-radius: .7rem;
	background: var(--oib-surface);
}

.oib-configurator__measure-grid .oib-field input {
	border: 0;
	background: transparent;
}

.oib-configurator__measure-grid .oib-field input[readonly] {
	color: var(--oib-muted);
}

.oib-configurator__measure-grid .oib-field b {
	padding-right: .75rem;
	color: var(--oib-muted);
	font-size: .75rem;
}

.oib-configurator__area {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: .75rem 0 0;
	border-radius: .7rem;
	background: color-mix(in srgb, var(--oib-sage) 42%, transparent);
	color: var(--oib-muted);
	padding: .65rem .75rem;
	font-size: .75rem;
}

.oib-configurator__area strong { color: var(--oib-forest-deep); font-size: .95rem; }
.oib-shape-note { min-height: 1.1rem; margin-bottom: 0; }

.oib-crop-swatch { width: .7rem; height: 1.7rem; border-radius: 999px; }
.oib-crop-swatch--herbs { background: #547a4a; }
.oib-crop-swatch--leaves { background: #8da45c; }
.oib-crop-swatch--fruit { background: #b95f3d; }

.oib-configurator__submit { width: 100%; margin-top: .25rem; }

.oib-configurator__visual {
	overflow: hidden;
	margin: 0;
}

.oib-configurator__visual-toolbar {
	display: flex;
	min-height: 3.75rem;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-bottom: 1px solid var(--oib-line);
	color: var(--oib-muted);
	padding: .8rem 1.1rem;
	font-size: .75rem;
}

.oib-configurator__visual-toolbar > span { display: flex; align-items: center; gap: .55rem; }
.oib-configurator__visual-toolbar i { width: .5rem; height: .5rem; border-radius: 50%; background: #5f8b5b; box-shadow: 0 0 0 .3rem rgba(95, 139, 91, .17); }
.oib-configurator__visual-toolbar strong { color: var(--oib-ink); }
.oib-configurator__visual-meta { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; }
.oib-configurator__visual-meta > span { border: 1px solid var(--oib-line); border-radius: 999px; background: var(--oib-surface-2); color: var(--oib-forest-deep); padding: .3rem .55rem; font-size: .63rem; font-weight: 850; white-space: nowrap; }

.oib-configurator__scene {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1672 / 941;
	background: #b5b6aa;
}

.oib-configurator__scene > [data-oib-scene-image] {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: center;
}

.oib-configurator__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(13, 22, 16, .02), transparent 48%, rgba(13, 22, 16, .2));
}

.oib-pot-zone {
	position: absolute;
	z-index: var(--plant-z, 5);
	left: var(--plant-x);
	top: var(--plant-y);
	width: var(--plant-width);
	height: var(--plant-height);
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	padding: 0;
	cursor: pointer;
	filter: drop-shadow(0 .5rem .45rem rgba(24, 34, 24, .22));
	transform: translate(-50%, -100%);
	transform-origin: 50% 100%;
}

.oib-pot-zone img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: center bottom;
	pointer-events: none;
	transform: translate(var(--plant-x-offset, 0), var(--plant-y-offset, 0)) scale(var(--plant-scale, 1));
	transform-origin: 50% 100%;
}

.oib-pot-zone__number {
	position: absolute;
	z-index: 3;
	left: 50%;
	top: calc(100% + .2rem);
	display: grid;
	width: 1.4rem;
	height: 1.4rem;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .86);
	border-radius: 50%;
	background: rgba(24, 40, 31, .88);
	color: #fff;
	font-size: .63rem;
	font-weight: 900;
	line-height: 1;
	pointer-events: none;
	transform: translateX(-50%);
	box-shadow: 0 .15rem .45rem rgba(0, 0, 0, .28);
}

.oib-pot-zone::after {
	content: "";
	position: absolute;
	left: 31%;
	right: 31%;
	top: calc(100% - .3rem);
	height: .6rem;
	border: 1px solid rgba(247, 243, 232, .8);
	border-radius: 50%;
	opacity: 0;
	transition: opacity .15s ease, transform .15s ease;
}

.oib-pot-zone:hover::after,
.oib-pot-zone:focus-visible::after { opacity: 1; transform: scale(1.08); }
.oib-pot-zone:focus-visible { outline: 2px solid #fff; outline-offset: .15rem; }

.oib-dimension {
	position: absolute;
	z-index: 9;
	pointer-events: none;
	color: #f7f3e8;
	font-size: .7rem;
	font-weight: 850;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .65);
}

.oib-dimension--width {
	left: 22%;
	right: 22%;
	bottom: 9%;
	height: 1px;
	border-top: 1px solid rgba(247, 243, 232, .84);
	text-align: center;
}

.oib-dimension--width::before,
.oib-dimension--width::after {
	content: "";
	position: absolute;
	top: -.25rem;
	width: 1px;
	height: .55rem;
	background: rgba(247, 243, 232, .84);
}
.oib-dimension--width::before { left: 0; }
.oib-dimension--width::after { right: 0; }
.oib-dimension--width span { position: relative; top: -.8rem; border-radius: 999px; background: rgba(20, 29, 22, .58); padding: .25rem .5rem; }

.oib-dimension--depth {
	top: 28%;
	right: 7%;
	bottom: 19%;
	width: 1px;
	border-left: 1px solid rgba(247, 243, 232, .84);
}
.oib-dimension--depth::before,
.oib-dimension--depth::after { content: ""; position: absolute; left: -.25rem; width: .55rem; height: 1px; background: rgba(247, 243, 232, .84); }
.oib-dimension--depth::before { top: 0; }
.oib-dimension--depth::after { bottom: 0; }
.oib-dimension--depth span { position: absolute; left: -1.05rem; top: 42%; min-width: 3.7rem; border-radius: 999px; background: rgba(20, 29, 22, .58); padding: .25rem .5rem; text-align: center; transform: rotate(-90deg); }

.oib-configurator__scene figcaption { position: absolute; right: .8rem; bottom: .5rem; z-index: 9; color: rgba(247, 243, 232, .82); font-size: .62rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .65); }

.oib-pot-legend {
	border-top: 1px solid var(--oib-line);
	padding: .85rem 1rem 1rem;
}
.oib-pot-legend > p { margin: 0 0 .55rem; color: var(--oib-muted); font-size: .7rem; }
.oib-pot-legend > div { display: flex; flex-wrap: wrap; gap: .42rem; }
.oib-pot-legend button { display: inline-flex; min-width: 8.25rem; min-height: 0; align-items: center; gap: .45rem; border: 1px solid var(--oib-line); border-radius: .8rem; background: var(--oib-surface-2); color: var(--oib-ink); padding: .38rem .55rem .38rem .38rem; font-size: .67rem; font-weight: 750; cursor: pointer; text-align: left; }
.oib-pot-legend b { display: grid; width: 1.3rem; height: 1.3rem; place-items: center; border-radius: 50%; background: var(--oib-forest); color: #fff; }
.oib-pot-pill__copy { display: grid; min-width: 0; gap: .05rem; }
.oib-pot-pill__copy small { color: var(--oib-muted); font-size: .56rem; font-weight: 750; }
.oib-pot-pill__copy > span { overflow: hidden; max-width: 7rem; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }

.oib-configurator__result {
	margin-top: 1rem;
	padding: clamp(1.25rem, 4vw, 3rem);
}

.oib-configurator__result-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1.5rem;
}
.oib-configurator__result-header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; letter-spacing: -.035em; }
.oib-pdf-form { margin: 0; }
.oib-pdf-form button { white-space: nowrap; }

.oib-configurator__summary-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .65rem;
	margin-top: 1.5rem;
}
.oib-configurator__summary-cards article { min-width: 0; border: 1px solid var(--oib-line); border-radius: .85rem; background: var(--oib-surface-2); padding: 1rem; }
.oib-configurator__summary-cards article > span { color: var(--oib-accent); font-size: .65rem; font-weight: 850; letter-spacing: .08em; }
.oib-configurator__summary-cards h3 { margin: .35rem 0 .65rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.oib-configurator__summary-cards p,
.oib-configurator__summary-cards ol { margin: 0; color: var(--oib-muted); font-size: .75rem; line-height: 1.55; }
.oib-configurator__summary-cards ol { padding-left: 1.15rem; }

.oib-configurator__materials {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 1rem;
	margin-top: 1rem;
}
.oib-configurator__materials > section,
.oib-configurator__materials > aside { border-radius: .85rem; background: var(--oib-surface-2); padding: 1rem; }
.oib-configurator__materials h3 { margin: 0 0 .65rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.oib-configurator__materials ul { margin: 0; padding-left: 1.2rem; }
.oib-configurator__materials li,
.oib-configurator__materials p { color: var(--oib-muted); font-size: .76rem; line-height: 1.58; }
.oib-configurator__materials aside { border-left: .25rem solid var(--oib-accent); }
.oib-configurator__materials aside p:last-child { margin-bottom: 0; }

.oib-configurator__shop { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; margin-top: 1rem; border-top: 1px solid var(--oib-line); padding-top: 1rem; }
.oib-configurator__shop h3,
.oib-configurator__shop p { margin: 0; }
.oib-configurator__shop p { color: var(--oib-muted); font-size: .72rem; line-height: 1.5; }
.oib-configurator__shop > div:last-child { display: flex; flex-wrap: wrap; gap: .5rem; }
.oib-configurator__shop a { border: 1px solid var(--oib-line); border-radius: 999px; color: var(--oib-forest-deep); padding: .4rem .65rem; font-size: .7rem; font-weight: 800; text-decoration: none; }

.oib-warning { border-inline-start: .3rem solid var(--oib-accent); padding-inline-start: 1rem; font-weight: 700; }
.oib-disclaimer { margin-bottom: 0; color: var(--oib-muted); font-size: .7rem; }
[hidden] { display: none !important; }

body.oib-light .oib-tool,
body.oib-light .oib-configurator {
	--oib-ink: #203229;
	--oib-muted: #657068;
	--oib-forest: #285f49;
	--oib-forest-deep: #1c4736;
	--oib-sage: #c9d3bd;
	--oib-cream: #f3f0e6;
	--oib-surface: #f8f5ec;
	--oib-surface-2: #ebe9df;
	--oib-line: rgba(38, 62, 50, .17);
	--oib-accent: #bb6546;
}

body.oib-dark .oib-tool,
body.oib-dark .oib-configurator {
	--oib-ink: #eef1e8;
	--oib-muted: #b5beb6;
	--oib-forest: #76a98d;
	--oib-forest-deep: #b8dcc7;
	--oib-sage: #314c3d;
	--oib-cream: #18241e;
	--oib-surface: #202f27;
	--oib-surface-2: #293930;
	--oib-line: rgba(232, 240, 232, .16);
	--oib-accent: #df8767;
}

body.oib-dark .oib-tool button,
body.oib-dark .oib-configurator__submit,
body.oib-dark .oib-pdf-form button { color: #132018; }

@media (prefers-color-scheme: dark) {
	body:not(.oib-light) .oib-tool,
	body:not(.oib-light) .oib-configurator {
		--oib-ink: #eef1e8;
		--oib-muted: #b5beb6;
		--oib-forest: #76a98d;
		--oib-forest-deep: #b8dcc7;
		--oib-sage: #314c3d;
		--oib-cream: #18241e;
		--oib-surface: #202f27;
		--oib-surface-2: #293930;
		--oib-line: rgba(232, 240, 232, .16);
		--oib-accent: #df8767;
	}
	body:not(.oib-light) .oib-tool button,
	body:not(.oib-light) .oib-configurator__submit,
	body:not(.oib-light) .oib-pdf-form button { color: #132018; }
}

@media (max-width: 960px) {
	.oib-configurator__workspace { grid-template-columns: 1fr; }
	.oib-configurator__visual { order: -1; }
}

@media (max-width: 680px) {
	.oib-tool__header { grid-template-columns: minmax(0, 1fr) 6.5rem; }
	.oib-tool-visual { width: 6.5rem; height: 5.2rem; }
	.oib-configurator { padding: .75rem; }
	.oib-configurator__result-header { align-items: stretch; flex-direction: column; }
	.oib-configurator__result-actions { flex-direction: column; }
	.oib-pdf-form { width: 100%; }
	.oib-pdf-form button { width: 100%; }
	[data-oib-copy-list] { width: 100%; }
	.oib-configurator__summary-cards,
	.oib-configurator__materials,
	.oib-configurator__shop { grid-template-columns: 1fr; }
	.oib-configurator__visual-toolbar { align-items: flex-start; flex-direction: column; gap: .3rem; }
	.oib-configurator__visual-meta { width: 100%; align-items: flex-start; flex-direction: column; gap: .3rem; }
	.oib-configurator__visual-meta > span { white-space: normal; }
}

@media print {
	.oib-configurator__form,
	.oib-configurator__visual,
	.oib-pdf-form,
	.oib-configurator__shop { display: none !important; }
	.oib-configurator__result { border: 0; padding: 0; }
}


/* ---- Orto in Balcone: allarga e centra il blocco constrained del configuratore ---- */
/* La cornice .oib-configurator era limitata a 760px dal blocco constrained del
   template; la griglia interna richiede ~800px e sporgeva a destra. Allarghiamo
   il contenitore per contenere la griglia nella cornice.
   2026-08-19 (fix #5): allargato a 75rem (1200px) e centrato con margin auto —
   il blocco constrained restava ancorato a sinistra (margin-left:0) e la cornice
   occupava solo la metà sinistra della pagina. */
.oib-article-content,
.oib-panel {
	max-width: 75rem !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.oib-article-content > .oib-configurator {
	max-width: 100%;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

/* ── v1.3.0 — hero, preset, stepper vasi, copia, micro-interazioni ───────── */
/* max-width/centraggio già gestiti dal blocco constrained in coda (75rem). */
.oib-configurator__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.5rem;
	align-items: end;
	max-width: none;
}

.oib-configurator__intro-text h2 {
	max-width: 22ch;
}

.oib-configurator__intro-actions {
	display: grid;
	gap: .6rem;
	justify-items: end;
	padding-bottom: .3rem;
}

.oib-configurator__intro-count {
	display: flex;
	align-items: baseline;
	gap: .45rem;
	margin: 0;
	color: var(--oib-muted);
	font-size: .78rem;
}

.oib-configurator__intro-count [data-oib-intro-count] {
	color: var(--oib-forest-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.7rem;
	font-weight: 600;
	line-height: 1;
}

.oib-configurator__intro-sub {
	font-size: .68rem;
	letter-spacing: .02em;
}

.oib-configurator__presets {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	justify-content: flex-end;
}

.oib-configurator__presets button {
	min-height: 2.35rem;
	border: 1px solid var(--oib-line);
	border-radius: 999px;
	background: var(--oib-surface);
	color: var(--oib-forest-deep);
	font-size: .74rem;
	font-weight: 750;
	padding: .45rem .95rem;
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.oib-configurator__presets button:hover {
	border-color: var(--oib-forest);
	background: color-mix(in srgb, var(--oib-sage) 45%, var(--oib-surface));
	transform: translateY(-1px);
}

.oib-configurator__presets button:focus-visible {
	outline: 2px solid var(--oib-forest);
	outline-offset: 2px;
}

/* Pannello "Aggiungi le piante": ogni pianta = un vaso. */
.oib-add-plants {
	display: grid;
	gap: .55rem;
}

.oib-add-plant {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: .7rem;
	align-items: center;
	border: 1px solid var(--oib-line);
	border-radius: .85rem;
	background: var(--oib-surface);
	padding: .7rem .8rem;
	cursor: pointer;
	text-align: left;
	color: var(--oib-ink);
	font: inherit;
	transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.oib-add-plant:hover {
	border-color: var(--oib-forest);
	background: color-mix(in srgb, var(--oib-sage) 32%, var(--oib-surface));
	transform: translateY(-1px);
}

.oib-add-plant:focus-visible {
	outline: 2px solid var(--oib-forest);
	outline-offset: 2px;
}

.oib-add-plant__copy {
	display: grid;
	gap: .1rem;
}

.oib-add-plant__copy strong {
	font-size: .82rem;
}

.oib-add-plant__copy small {
	color: var(--oib-muted);
	font-size: .68rem;
	line-height: 1.35;
}

.oib-add-plant__plus {
	display: grid;
	width: 1.8rem;
	height: 1.8rem;
	place-items: center;
	border-radius: 50%;
	background: var(--oib-forest);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1;
}

/* Lista piante: una riga per vaso, rimovibile. */
.oib-plant-list {
	list-style: none;
	margin: .55rem 0 0;
	padding: 0;
	display: grid;
	gap: .4rem;
}

.oib-plant-list__item {
	display: grid;
	grid-template-columns: 1.4rem auto 1fr auto;
	gap: .6rem;
	align-items: center;
	border: 1px solid var(--oib-line);
	border-radius: .7rem;
	background: var(--oib-surface-2);
	padding: .5rem .65rem;
}

.oib-plant-list__item > b {
	width: 1.4rem;
	height: 1.4rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--oib-forest);
	color: #fff;
	font-size: .68rem;
	font-weight: 800;
}

.oib-plant-list__item [data-oib-plant-label] {
	font-size: .8rem;
}

.oib-plant-list__remove {
	width: 1.6rem;
	height: 1.6rem;
	display: grid;
	place-items: center;
	border: 1px solid var(--oib-line);
	border-radius: 50%;
	background: transparent;
	color: var(--oib-muted);
	font-size: .95rem;
	line-height: 1;
	cursor: pointer;
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.oib-plant-list__remove:hover {
	border-color: var(--oib-accent);
	background: color-mix(in srgb, var(--oib-accent) 18%, var(--oib-surface));
	color: var(--oib-accent);
}

.oib-plant-list__remove:focus-visible {
	outline: 2px solid var(--oib-accent);
	outline-offset: 2px;
}

.oib-configurator__pots-hint {
	margin: .55rem 0 0;
	color: var(--oib-muted);
	font-size: .68rem;
	line-height: 1.4;
}

/* Bottone copia lista */
.oib-configurator__result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: stretch;
}

.oib-pdf-form {
	display: inline-flex;
	margin: 0;
}

.oib-pdf-form button {
	white-space: nowrap;
}

[data-oib-copy-list] {
	min-height: 2.75rem;
	border: 1px solid var(--oib-line);
	border-radius: 999px;
	background: var(--oib-surface);
	color: var(--oib-forest-deep);
	font-weight: 750;
	font-size: .78rem;
	padding: .6rem 1.05rem;
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

[data-oib-copy-list]:hover {
	border-color: var(--oib-forest);
	background: color-mix(in srgb, var(--oib-sage) 45%, var(--oib-surface));
}

[data-oib-copy-list]:active {
	transform: scale(.97);
}

/* Micro-interazioni scena: hover sulle piante */
.oib-pot-zone {
	transition: filter .16s ease;
}

.oib-pot-zone:hover img {
	filter: brightness(1.06);
}

.oib-pot-zone:focus-visible {
	outline: none;
}

.oib-pot-zone:focus-visible .oib-pot-zone__number {
	border-color: var(--oib-accent);
	box-shadow: 0 0 0 .3rem color-mix(in srgb, var(--oib-accent) 45%, transparent), 0 .15rem .45rem rgba(0, 0, 0, .28);
}

/* Pill vasi: scroll orizzontale quando molti vasi */
.oib-pot-legend [data-oib-pot-pills] {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}

@media (max-width: 680px) {
	.oib-configurator__intro {
		grid-template-columns: 1fr;
	}

	.oib-configurator__intro-actions {
		justify-items: start;
	}

	.oib-configurator__presets {
		justify-content: flex-start;
	}
}
