/* Kit builder, one screen. Uses the shared --pi-* tokens. The form sits beside the list from 1000px, above it below
   that; the checklist follows. One list: rows by area (ticked rows grey out in place), then the action
   bar (basket and Amazon). Without JavaScript the action bar, checklist and summary bar stay hidden. */
.pb-builder {
	--pb-builder-rule: var(--pi-rule, #CCD4CF);
	--pb-builder-muted: var(--pi-muted, #5C695D);
	--pb-builder-tint: #F0F3F1;
	box-sizing: border-box;
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.25rem);
	padding-block: clamp(2rem, 5vw, 4rem);
	color: var(--pi-forest, #193B32);
}
.pb-builder *, .pb-builder *::before, .pb-builder *::after { box-sizing: border-box; }
.pb-builder.alignfull, .pb-builder.alignwide { padding-inline: max(var(--pi-gutter, 1.25rem), calc((100% - var(--wp--style--global--wide-size, 75rem)) / 2)); }
.pb-builder > script, .pb-builder > template { display: none; }
.pb-builder [hidden] { display: none !important; }
.pb-builder p, .pb-builder h1, .pb-builder h2, .pb-builder h3, .pb-builder ul, .pb-builder ol, .pb-builder fieldset, .pb-builder dl, .pb-builder dd { margin: 0; }
.pb-builder a { color: var(--pi-forest, #193B32); text-underline-offset: .22em; }
.pb-builder[data-pb-ready] [data-pb-no-js] { display: none; }

.pb-builder-head { display: grid; gap: .75rem; max-width: 46rem; }
.pb-builder-title { font-family: var(--pi-display); font-weight: 650; letter-spacing: -.045em; font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: .98; }
.pb-builder-intro { font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.6; color: var(--pb-builder-muted); max-width: 40rem; }

.pb-builder-main { display: grid; gap: clamp(1.5rem, 3vw, 2rem); min-width: 0; }
.pb-builder-section-title, .pb-builder-panel-title { font-family: var(--pi-display); font-weight: 650; letter-spacing: -.03em; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; }
.pb-builder-panel-title { font-size: 1.35rem; letter-spacing: -.02em; }
/* Numbered zones: 1 household, 2 list, 3 checklist. The number is decorative (aria-hidden). */
.pb-builder-section-title, .pb-builder-panel-title { display: flex; align-items: center; gap: .6rem; }
.pb-builder-step { display: inline-grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--pi-forest, #193B32); color: var(--pi-paper, #FAFBFA); font-family: var(--pi-sans, inherit); font-size: .9rem; font-weight: 700; letter-spacing: 0; line-height: 1; }
/* Focus moves to a section heading after an in-page link; it is not a control, so no focus ring. */
.pb-builder-section-title:focus, .pb-builder-section-title:focus-visible { outline: none; }
.pb-builder-lede { max-width: 44rem; line-height: 1.6; }
.pb-builder-label { display: block; padding: 0; font-weight: 650; font-size: .95rem; }
.pb-builder-hint { color: var(--pb-builder-muted); font-size: .82rem; line-height: 1.5; }
#household, #scenario, #list, #checklist { scroll-margin-top: 1.25rem; }
/* #gaps: the old Shop the gaps anchor, an empty span at the top of the list so old links land there. */
#list { position: relative; }
.pb-builder-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; scroll-margin-top: 1.25rem; pointer-events: none; }

/* Form panel */
.pb-builder-panel { display: grid; gap: 2rem; align-content: start; min-width: 0; padding: clamp(1rem, 2.5vw, 1.4rem); background: var(--pb-builder-tint); border-top: 4px solid var(--pi-forest, #193B32); }
.pb-builder-panel fieldset { display: grid; gap: .6rem; min-width: 0; padding: 0; border: 0; }
/* A legend is not a grid item, so the fieldset gap does not reach it: space it from its controls here. Groups sit
   further apart than the rows inside them. */
.pb-builder-panel legend { margin-bottom: .65rem; }
.pb-builder-panel .pb-builder-addons legend { margin-bottom: .3rem; }

/* Situation chips: radios styled as pills; the radio stays in place for keyboard and screen readers. */
.pb-builder-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pb-builder-chip { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .3rem .9rem .3rem .3rem; border: 1px solid var(--pi-forest, #193B32); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 600; line-height: 1.2; cursor: pointer; }
.pb-builder-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pb-builder-chip-icon { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--pb-builder-tint); color: var(--pi-deep, #12271F); }
.pb-builder-chip-icon svg { width: 1.05rem; height: 1.05rem; }
.pb-builder-chip:hover { background: var(--pb-builder-tint); }
.pb-builder-chip:has(input:checked) { background: var(--pi-forest, #193B32); color: #fff; }
.pb-builder-chip:has(input:checked) .pb-builder-chip-icon { background: var(--pi-yellow, #E1C74D); }
.pb-builder-chip:has(input:focus-visible) { outline: 3px solid var(--pi-forest, #193B32); outline-offset: 2px; }
.pb-builder-scenario-text { min-height: 2.5em; }

/* Steppers: a real number input between minus and plus buttons (buttons need JavaScript). */
.pb-builder-steppers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.pb-builder-field { display: grid; gap: .35rem; align-content: start; padding: .7rem; background: #fff; min-width: 0; }
.pb-builder-field .pb-builder-hint { font-size: .76rem; line-height: 1.35; }
.pb-stepper { display: flex; align-items: stretch; max-width: 100%; }
.pb-builder .pb-stepper input { width: 3rem; min-width: 0; min-height: 44px; flex: 1 1 3rem; padding: .3rem .15rem; border: 1px solid var(--pi-forest, #193B32); border-inline: 0; border-radius: 0; background: #fff; color: var(--pi-forest, #193B32); font: 650 1.15rem/1 var(--pi-display); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.pb-stepper input::-webkit-outer-spin-button, .pb-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pb-stepper input:focus-visible { outline: 2px solid var(--pi-forest, #193B32); outline-offset: 2px; position: relative; }
.pb-builder .pb-stepper-button { display: inline-grid; place-items: center; flex: none; width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--pi-forest, #193B32); border-radius: 0; background: #fff; color: var(--pi-forest, #193B32); cursor: pointer; }
.pb-builder .pb-stepper-button:hover { background: var(--pi-forest, #193B32); color: #fff; }
.pb-builder .pb-stepper-button:focus-visible { outline: 2px solid var(--pi-forest, #193B32); outline-offset: 2px; position: relative; z-index: 1; }
.pb-stepper-button svg { width: 18px; height: 18px; }
.pb-builder:not([data-pb-ready]) .pb-stepper .pb-stepper-button { display: none; }
.pb-builder:not([data-pb-ready]) .pb-stepper input { border-inline: 1px solid var(--pi-forest, #193B32); max-width: 8rem; }

.pb-builder-option { display: flex; align-items: flex-start; gap: .65rem; min-height: 44px; padding: .6rem .75rem; border: 1px solid var(--pb-builder-rule); background: #fff; cursor: pointer; line-height: 1.4; }
.pb-builder-option:hover { border-color: var(--pi-forest, #193B32); }
.pb-builder-option:has(input:checked) { border-color: var(--pi-forest, #193B32); box-shadow: inset 0 0 0 1px var(--pi-forest, #193B32); }
.pb-builder-option input { flex: none; width: 1.3rem; height: 1.3rem; margin: .05rem 0 0; accent-color: var(--pi-forest, #193B32); }
.pb-builder-option strong { display: block; font-weight: 650; }
.pb-builder-option span { font-size: .86rem; }
.pb-builder-medical { display: grid; gap: .6rem; padding: .9rem 1rem; border-left: 4px solid var(--pi-yellow, #E1C74D); background: #FBF8EA; line-height: 1.55; font-size: .88rem; }
.pb-builder-medical h3 { font-size: 1rem; font-weight: 650; }
.pb-builder-medical ul { display: grid; gap: .4rem; padding-left: 1.2rem; }
.pb-builder-pillar-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.pb-builder-pillar { align-items: center; }

.pb-builder-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.pb-builder-actions > * { flex: 0 1 auto; }
.pb-builder-actions [data-pb-amazon-links] { display: contents; }
html:not(.pb-basket-ready) .pb-builder [data-pb-add-basket] { display: none; }
.pb-builder .pb-builder-copy { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; border: 0; background: none; color: var(--pi-forest, #193B32); font: inherit; font-size: .88rem; font-weight: 600; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.pb-builder .pb-builder-copy:focus-visible { outline: 2px solid var(--pi-forest, #193B32); outline-offset: 2px; }
.pb-builder-share-fallback { display: grid; gap: .3rem; font-size: .85rem; }
.pb-builder-share-fallback input { width: 100%; min-height: 44px; padding: .4rem .6rem; border: 1px solid var(--pi-forest, #193B32); font: inherit; }
.pb-builder-note { max-width: 44rem; padding: .7rem .9rem; border-left: 3px solid var(--pi-yellow, #E1C74D); background: #FBF8EA; font-size: .88rem; line-height: 1.55; }

/* List: a header with the to-get count and a helper line, then each area as one white card of rows. */
.pb-builder-results { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.pb-builder-results-head { display: grid; gap: .7rem; }
.pb-builder-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.pb-builder-list-count { padding: .35rem .8rem; border-radius: 999px; background: var(--pb-builder-tint); font-size: .85rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.pb-builder-help { display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; border-left: 3px solid var(--pi-yellow, #E1C74D); background: #FBF8EA; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.pb-builder-help-icon { display: inline-grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--pi-forest, #193B32); color: var(--pi-yellow, #E1C74D); }
.pb-builder-help-icon svg { width: 1rem; height: 1rem; }
.pb-builder-list { --pb-builder-card-pad: clamp(.6rem, 2vw, .9rem); display: grid; gap: 1rem; }
.pb-builder-group { display: grid; gap: .25rem; }
.pb-builder-group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .4rem; border-bottom: 2px solid var(--pi-forest, #193B32); font-family: var(--pi-display); font-weight: 650; font-size: 1.15rem; letter-spacing: -.02em; }
.pb-builder-group-count { font-family: inherit; font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--pb-builder-muted); }
/* 2 Your list: one forest holder (heading, count, summary, groups and the action bar); the form
   beside it stays light, so inputs and the result read as two zones. Each area is a white card of rows on the
   green; group headers are quiet paper labels with their count; yellow marks the primary action and focus. */
.pb-builder-results { --pb-builder-paper: var(--pi-paper, #FAFBFA); --pb-builder-paper-muted: rgb(250 251 250 / .82); padding: clamp(1rem, 2.5vw, 1.6rem); background: var(--pi-forest, #193B32); color: var(--pb-builder-paper); }
.pb-builder-results .pb-builder-step { background: var(--pi-yellow, #E1C74D); color: var(--pi-deep, #12271F); }
.pb-builder-results .pb-builder-list-count { background: var(--pb-builder-paper); color: var(--pi-forest, #193B32); }
.pb-builder-results .pb-builder-note { padding: 0; border: 0; background: none; color: var(--pb-builder-paper-muted); font-size: .86rem; }
.pb-builder-results .pb-builder-help { padding: 0; border: 0; background: none; color: var(--pb-builder-paper); font-size: .84rem; font-weight: 600; }
.pb-builder-results .pb-builder-help-icon { width: 1.35rem; height: 1.35rem; background: var(--pi-yellow, #E1C74D); color: var(--pi-deep, #12271F); }
.pb-builder-results .pb-builder-help-icon svg { width: .85rem; height: .85rem; }
.pb-builder .pb-builder-results .pb-builder-list-actions .mw-secondary-button { min-height: 40px; padding: .35rem .9rem; border-color: var(--pb-builder-paper); background: none; color: var(--pb-builder-paper); }
.pb-builder .pb-builder-results .pb-builder-list-actions .mw-secondary-button:hover { background: var(--pb-builder-paper); color: var(--pi-forest, #193B32); }
.pb-builder .pb-builder-results .pb-builder-copy { color: var(--pb-builder-paper); }
.pb-builder-results-head :is(a, button):focus-visible, .pb-builder .pb-builder-results .pb-builder-copy:focus-visible { outline: 3px solid var(--pi-yellow, #E1C74D); outline-offset: 2px; }
.pb-builder-results .pb-builder-section-head { gap: .6rem .9rem; }
.pb-builder-results .pb-builder-list-actions { margin-left: auto; gap: .4rem .75rem; }
.pb-builder-results .pb-builder-share-fallback { flex: 1 1 100%; }
.pb-builder-results .pb-builder-share-fallback input { border-color: var(--pb-builder-paper); }
.pb-builder-list .pb-builder-group { gap: .4rem; }
.pb-builder-list .pb-builder-group-title { align-items: center; padding: .2rem 0 .1rem; border-bottom: 0; color: var(--pb-builder-paper); font-size: 1.1rem; }
.pb-builder-list .pb-builder-group-count { color: var(--pb-builder-paper-muted); }
.pb-builder-list .pb-builder-empty { border: 0; border-radius: 8px; color: var(--pb-builder-muted); }
/* Each area is one white card on the green; its items are rows split by hairline rules (no card per item). */
.pb-builder-lines { display: grid; padding: 0; list-style: none; }
.pb-builder-list .pb-builder-lines { border-radius: 8px; background: #fff; color: var(--pi-forest, #193B32); overflow: hidden; }
/* A row: round tick, thumbnail, name with the short working (need first), then the quantity pill. The whole label
   ticks "already have"; the tick is the real checkbox, drawn as a ring that fills yellow with a forest check. */
.pb-builder-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label qty"; column-gap: .75rem; align-items: center; padding: .55rem var(--pb-builder-card-pad, .9rem); border-bottom: 1px solid var(--pb-builder-rule); }
.pb-builder-line:last-child { border-bottom: 0; }
.pb-builder-line-label { grid-area: label; display: flex; align-items: center; gap: .75rem; min-width: 0; min-height: 48px; cursor: pointer; }
p.pb-builder-line-label { cursor: auto; }
.pb-builder-tick { position: relative; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin-inline: -4px -6px; }
.pb-builder-tick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pb-builder-tick-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--pi-forest, #193B32); border-radius: 50%; background: #fff; color: var(--pi-forest, #193B32); pointer-events: none; }
.pb-builder-tick-mark svg { width: 18px; height: 18px; visibility: hidden; }
/* Hover hints only for a real pointer, so a tap on a phone does not leave a ghost tick behind. */
@media (hover: hover) {
	label.pb-builder-line-label:hover .pb-builder-line-title { text-decoration: underline; text-underline-offset: .2em; }
	label.pb-builder-line-label:hover .pb-builder-tick-mark { background: var(--pb-builder-tint); }
	label.pb-builder-line-label:hover .pb-builder-tick input:not(:checked) + .pb-builder-tick-mark svg { visibility: visible; opacity: .35; }
}
.pb-builder-tick input:checked + .pb-builder-tick-mark, label.pb-builder-line-label:hover .pb-builder-tick input:checked + .pb-builder-tick-mark { background: var(--pi-yellow, #E1C74D); }
.pb-builder-tick input:checked + .pb-builder-tick-mark svg { visibility: visible; opacity: 1; }
.pb-builder-tick input:focus-visible + .pb-builder-tick-mark { outline: 3px solid var(--pi-forest, #193B32); outline-offset: 2px; }
.pb-builder-line-thumb { display: block; flex: none; width: 48px; height: 48px; border-radius: 6px; background: var(--pb-builder-tint); object-fit: cover; }
.pb-builder-line-text { display: grid; gap: .15rem; min-width: 0; }
.pb-builder-line-title { font-weight: 700; font-size: .98rem; line-height: 1.3; color: var(--pi-forest, #193B32); overflow-wrap: anywhere; }
.pb-builder-line-working { color: var(--pb-builder-muted); font-size: .84rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.pb-builder-line-need { margin-inline: -.15em; padding-inline: .15em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Quantity: a slim pill (36px) with 44px hit areas on minus and plus (a pseudo-element extends each button). */
.pb-builder-line-qty { grid-area: qty; }
.pb-builder-qty-control { display: inline-flex; align-items: center; height: 36px; padding: 0 1px; border: 1px solid var(--pb-builder-rule); border-radius: 999px; background: #fff; }
.pb-builder .pb-builder-qty-button { position: relative; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--pi-forest, #193B32); cursor: pointer; }
.pb-builder .pb-builder-qty-button::after { content: ""; position: absolute; inset: -5px; }
.pb-builder .pb-builder-qty-button:hover { background: var(--pb-builder-tint); }
.pb-builder .pb-builder-qty-button:focus-visible { outline: 2px solid var(--pi-forest, #193B32); outline-offset: 1px; z-index: 1; }
.pb-builder-qty-button svg { width: 16px; height: 16px; }
.pb-builder .pb-builder-qty-control input { width: 2.1rem; height: 34px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--pi-forest, #193B32); font: 700 1rem/1 var(--pi-sans, inherit); font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.pb-builder-qty-control input::-webkit-outer-spin-button, .pb-builder-qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pb-builder-qty-control input:focus-visible { outline: 2px solid var(--pi-forest, #193B32); outline-offset: 0; }
/* No JavaScript: the sized quantity as plain text in the same place. */
.pb-builder-qty-static { display: inline-flex; align-items: baseline; gap: .15rem; padding: .35rem .8rem; border: 1px solid var(--pb-builder-rule); border-radius: 999px; }
.pb-builder-qty-x { color: var(--pb-builder-muted); font-size: .85rem; }
.pb-builder-qty { font-weight: 700; font-size: 1rem; line-height: 1; font-variant-numeric: tabular-nums; }
/* Owned rows stay in place: muted, name struck through, greyed thumbnail, tick filled, and no quantity (it is not on
   the shopping list). Unticking restores the row. */
.pb-builder-need { display: grid; gap: 1rem; }
.pb-builder-line[data-owned] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label"; }
.pb-builder-line[data-owned] .pb-builder-line-title { color: var(--pb-builder-muted); font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1px; }
.pb-builder-line[data-owned] .pb-builder-line-thumb { opacity: .5; filter: grayscale(1); }
.pb-builder-line[data-owned] .pb-builder-line-qty { display: none; }
.pb-builder-empty { color: var(--pb-builder-muted); padding: 1rem; border: 1px solid var(--pb-builder-rule); background: #fff; }

/* What the last form change did: changed or new rows flash a yellow tint (about 1.2s) and the need text and
   quantity hold it a little longer; with reduced motion they keep a static yellow marker until the next redraw.
   The update line sits at the top of the list (sticky beside the form from 1000px). */
@keyframes pb-builder-changed { from { background-color: #FBF0C2; } to { background-color: #fff; } }
@keyframes pb-builder-changed-text { 0%, 40% { background-color: #F5E39A; } to { background-color: rgb(245 227 154 / 0); } }
@keyframes pb-builder-update-flash { from { box-shadow: 0 0 0 3px var(--pi-yellow, #E1C74D); } to { box-shadow: 0 0 0 3px rgb(225 199 77 / 0); } }
.pb-builder-line[data-pb-changed] { animation: pb-builder-changed 1.2s ease-out; }
.pb-builder-line[data-pb-changed~="need"] .pb-builder-line-need, .pb-builder-line[data-pb-changed="new"] .pb-builder-line-need { color: var(--pi-forest, #193B32); animation: pb-builder-changed-text 1.6s ease-out; }
.pb-builder-line[data-pb-changed~="qty"] .pb-builder-qty-control input { animation: pb-builder-changed-text 1.6s ease-out; }
.pb-builder-update { padding: .55rem .8rem; border-left: 3px solid var(--pi-yellow, #E1C74D); border-radius: 0 6px 6px 0; background: var(--pi-deep, #12271F); color: var(--pb-builder-paper); font-size: .86rem; font-weight: 600; line-height: 1.4; }
.pb-builder-update[data-pb-fresh] { animation: pb-builder-update-flash 1.2s ease-out; }
@media (prefers-reduced-motion: reduce) {
	.pb-builder-line[data-pb-changed], .pb-builder-line[data-pb-changed] .pb-builder-line-need, .pb-builder-line[data-pb-changed] input, .pb-builder-update[data-pb-fresh] { animation: none; }
	.pb-builder-line[data-pb-changed] { box-shadow: inset 4px 0 0 var(--pi-yellow, #E1C74D); }
	.pb-builder-line[data-pb-changed~="need"] .pb-builder-line-need, .pb-builder-line[data-pb-changed="new"] .pb-builder-line-need, .pb-builder-line[data-pb-changed~="qty"] .pb-builder-qty-control input { background-color: #FBF0C2; color: var(--pi-forest, #193B32); }
}

/* Action bar under the list: a forest band with the basket and Amazon actions, notes and the disclosure. */
.pb-builder-buy { display: grid; gap: .75rem; padding: clamp(.9rem, 2.5vw, 1.25rem); border-radius: 4px; background: var(--pi-deep, #12271F); color: var(--pi-paper, #FAFBFA); }
.pb-builder .pb-builder-buy .mw-primary-button { background: var(--pi-yellow, #E1C74D); border-color: var(--pi-yellow, #E1C74D); color: var(--pi-deep, #12271F); }
.pb-builder .pb-builder-buy .mw-primary-button:hover { background: #fff; border-color: #fff; color: var(--pi-deep, #12271F); }
.pb-builder .pb-builder-buy .mw-secondary-button { border-color: #fff; color: #fff; }
.pb-builder .pb-builder-buy a.mw-secondary-button:hover { background: #fff; color: var(--pi-forest, #193B32); }
.pb-builder .pb-builder-buy .pb-builder-amazon { display: inline-flex; flex-wrap: wrap; justify-content: center; column-gap: .3rem; text-align: center; }
.pb-builder-newtab { font-size: .78em; font-weight: 500; }
.pb-builder .pb-builder-buy .pb-builder-amazon.is-disabled { border-style: dashed; opacity: .85; cursor: not-allowed; }
.pb-builder .pb-builder-buy .pb-builder-amazon.is-disabled:hover { background: none; color: #fff; }
.pb-builder-buy :is(a, button):focus-visible { outline: 3px solid var(--pi-yellow, #E1C74D); outline-offset: 2px; }
.pb-builder-buy-note { font-size: .85rem; line-height: 1.5; }
.pb-builder-buy .pb-builder-coming-soon { padding: 0 0 0 .7rem; border-left: 3px solid var(--pi-yellow, #E1C74D); background: none; color: var(--pi-paper, #FAFBFA); }
.pb-builder-buy .pb-builder-disclosure { color: rgb(250 251 250 / .85); }

/* The checklist */
.pb-builder-section { display: grid; gap: 1.1rem; padding: clamp(1.1rem, 3vw, 2rem); min-width: 0; }
/* 3 Checklist: a bordered white card with a yellow rule. */
#checklist.pb-builder-section { border: 1px solid var(--pb-builder-rule); border-top: 4px solid var(--pi-yellow, #E1C74D); background: #fff; }
.pb-builder-coming-soon { max-width: 44rem; padding: .8rem .9rem; border-left: 3px solid var(--pi-yellow, #E1C74D); background: #FBF8EA; font-size: .85rem; line-height: 1.55; }
.pb-builder-disclosure { color: var(--pb-builder-muted); font-size: .78rem; }
.pb-builder-preview { border: 1px solid var(--pb-builder-rule); background: #fff; }
.pb-builder-preview > summary { display: flex; align-items: center; min-height: 48px; padding: .5rem 1rem; font-weight: 650; cursor: pointer; }
.pb-builder-preview > summary:focus-visible { outline: 2px solid var(--pi-forest, #193B32); outline-offset: 2px; }
.pb-builder-checklist { padding: 0 clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.75rem); }

/* Checklist preview (the printed document has its own print.css) */
.pb-checklist-doc { display: grid; gap: 1.25rem; }
.pb-checklist-head { display: grid; gap: .5rem; padding: 1rem 1.15rem; background: var(--pb-builder-tint); border-top: 4px solid var(--pi-forest, #193B32); }
.pb-checklist-brand { font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.pb-checklist-title { font-family: var(--pi-display); font-weight: 650; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.15; }
.pb-checklist-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .3rem 1.5rem; font-size: .88rem; }
.pb-checklist-meta div { display: flex; gap: .4rem; }
.pb-checklist-meta dt { font-weight: 650; }
.pb-checklist-meta dt::after { content: ":"; }
.pb-checklist-note, .pb-checklist-medical { padding: .8rem 1rem; border-left: 4px solid var(--pi-yellow, #E1C74D); background: #FBF8EA; font-size: .88rem; line-height: 1.55; }
.pb-checklist-medical h4 { font-size: 1rem; margin: 0 0 .3rem; }
.pb-checklist-group h4 { margin: 0 0 .25rem; padding-bottom: .35rem; border-bottom: 2px solid var(--pi-forest, #193B32); font-size: 1.05rem; }
.pb-checklist-items { margin: 0; padding: 0; list-style: none; }
.pb-checklist-item { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) auto 3.25rem; gap: .75rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--pb-builder-rule); font-size: .92rem; }
.pb-checklist-box { width: 1rem; height: 1rem; border: 2px solid var(--pi-forest, #193B32); }
.pb-checklist-item[data-state="have"] .pb-checklist-box { background: var(--pi-forest, #193B32); box-shadow: inset 0 0 0 2px #fff; }
.pb-checklist-name { overflow-wrap: anywhere; }
.pb-checklist-qty { font-weight: 650; white-space: nowrap; }
.pb-checklist-state { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; text-align: right; color: var(--pb-builder-muted); }
.pb-checklist-foot { font-size: .8rem; color: var(--pb-builder-muted); overflow-wrap: anywhere; }

/* Mobile summary bar: sticks to the bottom of the screen while the builder is in view, then docks above the kit
   links, so it never hides the end of the page. Not a live region; the status line announces changes. */
.pb-builder-bar { position: sticky; bottom: max(.5rem, env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; padding: .55rem .6rem .55rem .9rem; background: var(--pi-deep, #12271F); color: #fff; border: 1px solid rgb(250 251 250 / .35); box-shadow: 0 6px 24px rgb(18 39 31 / .28); }
.pb-builder-bar-text { flex: 1 1 13rem; min-width: 0; font-size: .84rem; font-weight: 600; line-height: 1.35; }
.pb-builder-bar-actions { display: flex; gap: .4rem; flex: 1 1 auto; }
.pb-builder .pb-builder-bar :is(a, button) { flex: 1 1 0; min-height: 44px; padding: .4rem .8rem; white-space: nowrap; }
.pb-builder .pb-builder-bar .mw-primary-button { background: var(--pi-yellow, #E1C74D); color: var(--pi-deep, #12271F); }
.pb-builder .pb-builder-bar .mw-secondary-button { border-color: #fff; color: #fff; }
.pb-builder .pb-builder-bar .mw-secondary-button:hover { background: #fff; color: var(--pi-forest, #193B32); }
.pb-builder .pb-builder-bar :is(a, button):focus-visible { outline: 3px solid var(--pi-yellow, #E1C74D); outline-offset: 2px; }

/* Ready-made kits */
/* Build another kit: the other situations as link chips, keeping the household. */
.pb-builder-another { border-top: 1px solid var(--pb-builder-rule); }
.pb-builder-another-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pb-builder-another-links .pb-builder-chip { color: inherit; text-decoration: none; }
.pb-builder-another-links .pb-builder-chip:focus-visible { outline: 3px solid var(--pi-forest, #193B32); outline-offset: 2px; }
.pb-builder-kits { display: grid; gap: .8rem; padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--pb-builder-rule); }
.pb-builder-kits-title { font-family: var(--pi-display); font-weight: 650; font-size: 1.3rem; letter-spacing: -.02em; }
.pb-builder-kit-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: 0; list-style: none; }
.pb-builder-kit-links a, .pb-builder-kits .pb-builder-hint a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .9rem; }

@media (min-width: 1000px) {
	.pb-builder-main { grid-template-columns: minmax(21rem, 25rem) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 4vw, 3.5rem); }
	.pb-builder-bar { display: none; }
	.pb-builder-list { --pb-builder-card-pad: 1.1rem; }
	.pb-builder-update { position: sticky; top: .75rem; z-index: 2; box-shadow: 0 6px 18px rgb(18 39 31 / .35); }
}
@media (max-width: 999px) {
	/* Keep focused controls clear of the summary bar. */
	html:has(.pb-builder[data-pb-ready] .pb-builder-bar) { scroll-padding-bottom: 7.5rem; }
	.pb-builder .pb-builder-list-actions .pb-builder-jump { display: none; }
}
/* Phones: the name takes the full width of the text column and the quantity pill drops beside the working line
   (row 2, right), so a row stays two short lines. The label and text wrappers become display: contents so their
   parts sit on the row grid; the whole label still ticks (activation does not depend on its box). */
@media (max-width: 599px) {
	.pb-builder-line { grid-template-columns: 34px 40px minmax(0, 1fr) auto; grid-template-areas: "tick thumb title title" "tick thumb work qty"; column-gap: .6rem; row-gap: .2rem; align-items: center; padding-block: .5rem; }
	.pb-builder-line-label, .pb-builder-line-text { display: contents; }
	.pb-builder-tick { grid-area: tick; align-self: center; margin-inline: -5px; }
	.pb-builder-line-thumb { grid-area: thumb; align-self: center; width: 40px; height: 40px; }
	.pb-builder-line-title { grid-area: title; align-self: end; font-size: .92rem; line-height: 1.25; }
	.pb-builder-line-working { grid-area: work; align-self: start; font-size: .8rem; line-height: 1.3; }
	.pb-builder-line-qty { grid-area: qty; align-self: start; }
	.pb-builder-line[data-owned] { grid-template-columns: 34px 40px minmax(0, 1fr); grid-template-areas: "tick thumb title" "tick thumb work"; }
	.pb-builder-qty-control { height: 34px; }
	.pb-builder .pb-builder-qty-button { width: 32px; height: 32px; }
	.pb-builder .pb-builder-qty-button::after { inset: -6px; }
	.pb-builder .pb-builder-qty-control input { width: 1.9rem; height: 32px; }
}
/* Narrow phones (320): no room beside the working line, so the pill drops under it in the text column. */
@media (max-width: 379px) {
	.pb-builder-line { grid-template-columns: 34px 36px minmax(0, 1fr); grid-template-areas: "tick thumb title" "tick thumb work" "tick thumb qty"; column-gap: .55rem; row-gap: .15rem; }
	.pb-builder-line-thumb { width: 36px; height: 36px; }
	.pb-builder-line-title { font-size: .88rem; line-height: 1.2; }
	.pb-builder-line-working { font-size: .76rem; line-height: 1.25; }
	.pb-builder-line-qty { justify-self: start; margin-top: .15rem; }
	.pb-builder-line[data-owned] { grid-template-columns: 34px 36px minmax(0, 1fr); }
}
@media (max-width: 419px) {
	.pb-builder-panel { padding-inline: .75rem; }
	.pb-builder-results { padding: 1rem .6rem; }
	.pb-builder-field { padding: .55rem; }
}
@media (max-width: 379px) {
	.pb-builder-steppers { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
	.pb-builder-field { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .5rem; }
	.pb-builder-field .pb-builder-hint { grid-column: 1; grid-row: 2; }
	.pb-builder-field .pb-stepper { grid-column: 2; grid-row: 1 / span 2; }
	.pb-builder-chip { font-size: .85rem; }
	.pb-builder-pillar-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
	.pb-builder-actions > :not([data-pb-amazon-links]):not(.pb-builder-copy), .pb-builder-actions [data-pb-amazon-links] > * { flex: 1 1 100%; }
	.pb-checklist-item { grid-template-columns: 1.1rem minmax(0, 1fr) auto; }
	.pb-checklist-state { grid-column: 2 / -1; text-align: left; }
}
@media print {
	.pb-builder-bar, .pb-builder-actions, .pb-stepper-button, .pb-builder-kits, .pb-builder-panel { display: none !important; }
}

/* Add-on chips (+ Baby, + Older relative): checkboxes styled like the situation chips; each reveals its count. */
.pb-builder-addon-steppers:not(:has(> :not([hidden]))) { display: none; }
.pb-builder-addon-chip .pb-builder-chip-icon svg { width: .95rem; height: .95rem; }
