/* Design and Price concept. Operate surface: same world, tighter and flatter. */

.tool { --lawn: oklch(0.925 0.035 135); --gutter: var(--s-5); }
.tool main { display: block; min-height: 70vh; outline: none; }

/* Top bar: a pine field that holds the step rail, the running total and the save status. */
.tbar { position: sticky; top: 0; z-index: 20; background: var(--pine-field); color: var(--on-pine); box-shadow: var(--shadow-bar); }
.tbar-inner {
  max-width: 92rem; margin: 0 auto; padding: 0 var(--gutter); min-height: 60px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-5);
}
.wordmark {
  color: var(--on-pine); text-decoration: none; font-stretch: 118%; font-weight: 680; font-size: var(--t-md);
  letter-spacing: -0.01em; white-space: nowrap;
}
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-1); justify-content: center; }
.rail a {
  display: block; padding: 1.15rem var(--s-3); color: var(--on-pine-2); text-decoration: none;
  font-size: var(--t-sm); font-weight: 560; white-space: nowrap;
}
.rail a:hover { color: var(--on-pine); }
.rail a[aria-current="step"] { color: var(--on-pine); box-shadow: inset 0 -3px 0 var(--oak); }
.qprogress { display: flex; align-items: center; gap: var(--s-3); justify-content: center; font-size: var(--t-sm); color: var(--on-pine-2); }
.qbar { width: min(16rem, 30vw); height: 4px; background: oklch(1 0 0 / 0.18); border-radius: 4px; overflow: hidden; }
.qbar span { display: block; height: 100%; width: 100%; background: var(--oak); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
.bar-note { text-align: center; font-size: var(--t-sm); color: var(--on-pine-2); }
.bar-meta { display: flex; align-items: center; gap: var(--s-5); justify-content: flex-end; }
.bar-total { display: flex; align-items: baseline; gap: var(--s-2); white-space: nowrap; }
.bar-total span { font-size: var(--t-xs); color: var(--on-pine-2); }
.bar-total strong { font-size: var(--t-md); font-weight: 680; }
.bar-time { font-size: var(--t-sm); color: var(--on-pine-2); white-space: nowrap; }
.bar-save { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-xs); color: var(--on-pine-2); max-width: 15rem; line-height: 1.3; }
.bar-save.is-saved .icon { color: var(--sage); }
.bar-save.is-off { color: var(--oak); }

/* Shared view parts */
.view-head { max-width: 92rem; margin: 0 auto; padding: var(--s-6) var(--gutter) var(--s-5); }
.view-head h1 { font-size: var(--t-3xl); outline: none; }
.lede { margin-top: var(--s-2); color: var(--pine-2); font-size: var(--t-md); max-width: 62ch; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.quiet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-4); }
.btn-sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--t-sm); }
.btn-wide { width: 100%; }
.btn-quiet .icon { width: 1.05em; height: 1.05em; }
.btn-quiet { display: inline-flex; align-items: center; gap: var(--s-1); cursor: pointer; font-size: var(--t-sm); }

.notice, .banner, .ready-lock, .resume {
  max-width: calc(92rem - 2 * var(--gutter)); margin: var(--s-4) auto 0; display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-panel); width: calc(100% - 2 * var(--gutter));
}
.notice { background: var(--plaster-2); border: 1px solid var(--rule); }
.notice > div { flex: 1; }
.notice ul { margin: var(--s-1) 0 0; padding-left: 1.1rem; font-size: var(--t-sm); }
.notice .icon, .banner .icon, .ready-lock .icon { margin-top: 2px; }
.banner { background: var(--oak); align-items: center; }
.banner p { flex: 1; }
.ready-lock { background: var(--oak-soft); margin-bottom: var(--s-4); }
.ready-lock p + p { margin-top: var(--s-1); font-size: var(--t-sm); }

/* Quiz */
.quiz { max-width: 50rem; margin: 0 auto; padding: var(--s-7) var(--gutter) var(--s-8); }
.quiz-images { max-width: 80rem; }
.quiz-title { font-size: 2.6rem; outline: none; }
.quiz-lede { margin-top: var(--s-3); color: var(--pine-2); font-size: var(--t-md); }
.answers { border: 0; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-3); }
.answer {
  position: relative; display: flex; align-items: center; gap: var(--s-4); min-height: 64px; padding: var(--s-3) var(--s-5);
  background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--r-panel);
  font-size: var(--t-md); font-weight: 560; cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.answer:hover { border-color: var(--pine-2); }
.answer input, .look input, .seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.answer:has(input:focus-visible), .seg-opt:has(input:focus-visible) { outline: 2px solid var(--clay); outline-offset: 2px; }
.answer.is-on { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }
.answer-mark {
  margin-left: auto; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--rule-strong);
  display: grid; place-items: center; color: transparent;
}
.answer.is-on .answer-mark { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.answer-mark .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.quiz-images .answers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quiz-images .answer .frame { aspect-ratio: 4 / 3; }
.quiz-images .answer { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; gap: 0; }
.quiz-images .answer .frame { border-radius: 0; }
.quiz-images .answer-label { padding: var(--s-3) var(--s-4); }
.quiz-images .answer-mark { position: absolute; top: var(--s-3); right: var(--s-3); background: var(--white); }
.teach { min-height: 1.6em; margin-top: var(--s-4); display: flex; gap: var(--s-2); align-items: flex-start; font-family: var(--font-read); font-size: var(--t-md); color: var(--pine); }
.teach .icon { margin-top: 0.2em; color: var(--oak-deep); }
.quiz .field-error { margin-top: var(--s-2); }
.quiz-actions { margin-top: var(--s-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.resume { max-width: 50rem; width: calc(100% - 2 * var(--gutter)); background: var(--oak-soft); display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; }
.resume .frame { border-radius: var(--r-control); }
.resume h2 { font-size: var(--t-md); }
.resume p { font-size: var(--t-sm); color: var(--pine-2); }

/* Picks */
.picks-view { padding-bottom: var(--s-8); }
.picks { max-width: 92rem; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.pick { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-panel); overflow: hidden; scroll-margin-top: 140px; }
.pick-body { padding: var(--s-4) var(--s-5) var(--s-5); display: grid; gap: var(--s-3); }
.pick h2 { font-stretch: 112%; font-size: var(--t-xl); }
.specs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); color: var(--pine-2); font-size: var(--t-sm); }
.specs .icon { width: 1.1em; height: 1.1em; }
.pick-look { font-weight: 600; }
.why-h { font-size: var(--t-sm); margin-top: var(--s-1); }
.why { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--s-1); font-size: var(--t-sm); }
.pick-price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--rule); padding-top: var(--s-3); }
.pick-price span { font-size: var(--t-sm); color: var(--pine-2); }
.pick-price strong { font-size: var(--t-xl); font-weight: 680; }
.pick .btn { width: 100%; }
.pick-strip { display: none; }
.picks-view .quiet-row, .picks-view .render-label { max-width: 92rem; margin: var(--s-4) auto 0; padding: 0 var(--gutter); }

/* Finish board: sample chips the way a design studio lays them out. */
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.board li { display: grid; justify-items: center; gap: var(--s-1); font-size: var(--t-xs); color: var(--pine-2); }
.chip { display: block; width: 40px; height: 40px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px oklch(0.27 0.035 168 / 0.18); }
.board-sm .chip { width: 28px; height: 28px; }
.board-sm li { font-size: 0.72rem; }
.chip-lg { width: 32px; height: 32px; grid-row: span 2; }

/* Build steps */
.build { padding-bottom: var(--s-8); }
.build-grid { max-width: 92rem; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: var(--s-6); align-items: start; }
.stage .frame { border-radius: var(--r-panel); }
.stage .render-label { margin-top: var(--s-2); }
.panel { display: grid; gap: var(--s-5); position: sticky; top: 80px; }
.build-look .build-grid { grid-template-columns: 1fr; gap: var(--s-5); }
.build-look .panel { position: static; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-4) var(--s-7); align-items: start; }
.build-look .includes { grid-row: span 4; }

.build .view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.frame-wide { aspect-ratio: 16 / 9; }
.room-switch { display: inline-flex; flex: none; border: 1px solid var(--pine); border-radius: var(--r-control); overflow: hidden; }
.room-btn { min-height: 40px; padding: 0 var(--s-5); background: var(--white); border: 0; cursor: pointer; font-weight: 560; font-size: var(--t-sm); }
.room-btn + .room-btn { border-left: 1px solid var(--pine); }
.room-btn[aria-pressed="true"] { background: var(--pine); color: var(--on-pine); }
.compare { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.look { position: relative; display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-2); cursor: pointer; }
.look .frame { grid-column: 1 / -1; border-radius: var(--r-panel); outline: 3px solid transparent; outline-offset: 3px; transition: outline-color var(--dur-1) var(--ease-out); }
.look:hover .frame { outline-color: var(--rule-strong); }
.look.is-on .frame { outline-color: var(--pine); }
.look:has(input:focus-visible) .frame { outline-color: var(--clay); }
.look-name { font-weight: 640; margin-top: var(--s-2); }
.look-delta { margin-top: var(--s-2); color: var(--pine-2); font-weight: 600; }
.look.is-on .look-name::after { content: "Your look"; margin-left: var(--s-2); font-size: var(--t-xs); font-weight: 600; color: var(--sage-ink); background: var(--sage); padding: 2px 8px; border-radius: 99px; vertical-align: 2px; }
fieldset[disabled] .look, fieldset[disabled] .seg-opt, fieldset[disabled] .opt { cursor: not-allowed; opacity: 0.6; }

.includes { display: grid; gap: var(--s-3); }
.includes h2 { font-size: var(--t-lg); }
.inc-line { color: var(--pine-2); }
.lines { width: 100%; font-size: var(--t-sm); }
.lines th { text-align: left; font-weight: 450; padding: 0.4rem 0; border-bottom: 1px solid var(--rule); }
.lines td { text-align: right; padding: 0.4rem 0 0.4rem var(--s-4); border-bottom: 1px solid var(--rule); font-weight: 600; white-space: nowrap; }
.lines tfoot th, .lines tfoot td { font-weight: 700; font-size: var(--t-base); border-bottom: 0; border-top: 1px solid var(--pine); }

.ctl { border: 0; padding: 0; margin: 0; min-width: 0; }
.ctl legend { font-weight: 660; font-size: var(--t-md); padding: 0; }
.ctl-affects { font-size: var(--t-sm); color: var(--pine-2); margin: var(--s-1) 0 var(--s-3); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.seg-opt {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 2px var(--s-2);
  padding: var(--s-3); background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--r-control); cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.seg-opt:hover { border-color: var(--pine-2); }
.seg-opt.is-on { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); background: var(--oak-soft); }
.seg-opt.is-off { opacity: 0.5; cursor: not-allowed; }
.seg-name { font-weight: 600; font-size: var(--t-sm); }
.seg-adds { font-weight: 600; font-size: var(--t-sm); text-align: right; white-space: nowrap; }
.seg-detail { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--pine-2); line-height: 1.35; }
.seg-pal .seg-opt { grid-template-columns: auto minmax(0, 1fr) auto; }
.seg-pal .seg-detail { grid-column: 2 / -1; }
.ctl-why { display: flex; gap: var(--s-2); align-items: flex-start; margin-top: var(--s-2); font-size: var(--t-sm); color: var(--pine-2); }
.ctl-why .icon { flex: none; margin-top: 2px; }

.change { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); background: var(--plaster-2); border-radius: var(--r-control); font-size: var(--t-sm); }
.change > span { flex: 1; }
.change > .icon { color: var(--sage-ink); flex: none; }
.change.is-empty { display: none; }

.progress-card { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-3); background: var(--oak-soft); border-radius: var(--r-panel); }
.progress-card .frame { border-radius: var(--r-control); }
.pc-name { font-weight: 660; }
.pc-meta { font-size: var(--t-xs); color: var(--pine-2); }
.pc-total { display: grid; text-align: right; }
.pc-total span { font-size: var(--t-xs); color: var(--pine-2); }
.pc-total strong { font-size: var(--t-lg); font-weight: 700; }

.continue-row { display: grid; gap: var(--s-2); }
.continue-row .btn-primary { width: 100%; }

.savebar-status { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-xs); color: var(--pine-2); }
.savebar { max-width: calc(92rem - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); margin: var(--s-7) auto 0; padding-top: var(--s-4); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }

/* Diagrams: plan sheet lines in pine on white. */
.mini-plan { margin-top: var(--s-4); }
.plan-svg, .site-svg { width: 100%; height: auto; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-panel); }
.mini-bath { max-width: 30rem; }
.plan-svg .walls { fill: none; stroke: var(--pine); stroke-width: 3; }
.plan-svg .room { fill: var(--white); stroke: var(--pine-2); stroke-width: 1; }
.plan-svg .room.is-on, .plan-svg .zone.is-on { fill: var(--oak-soft); stroke: var(--pine-2); stroke-width: 1.2; }
.plan-svg .zone.is-off { fill: none; stroke: var(--oak-deep); stroke-width: 1.5; stroke-dasharray: 6 5; }
.plan-svg .is-focus { fill: var(--oak); stroke: var(--pine); stroke-width: 2.4; }
.plan-svg .fixture { fill: var(--plaster-2); stroke: var(--pine-2); stroke-width: 1; }
.plan-svg .fixture.is-focus { fill: var(--oak); stroke: var(--pine); }
.plan-svg .porch { fill: var(--plaster-2); stroke: var(--rule-strong); }
.plan-svg .lower { stroke-dasharray: 3 5; }
.plan-svg .lower.is-off { stroke: var(--rule-strong); }
.plan-svg .dot { fill: var(--pine-2); }
.plan-svg .dot.is-focus { fill: var(--pine); }
.plan-svg .lbl, .site-svg .lbl { font-family: var(--font-ui); font-size: 13px; font-weight: 640; fill: var(--pine); letter-spacing: 0.04em; text-transform: uppercase; }
.plan-svg .lbl-sm, .site-svg .lbl-sm { font-size: 11px; font-weight: 560; fill: var(--pine-2); }
.plan-svg .lbl-muted { fill: var(--pine-2); text-transform: none; letter-spacing: 0; }
.site-svg .green { fill: var(--lawn); }
.site-svg .road { fill: var(--plaster-2); stroke: var(--rule-strong); }
.site-svg .lbl-on-road { fill: var(--pine-2); }
.site-svg .lot { cursor: pointer; }
.site-svg .lot rect { fill: var(--white); stroke: var(--pine-2); stroke-width: 1.2; transition: fill var(--dur-1) var(--ease-out); }
.site-svg .lot:hover rect { fill: var(--plaster-2); }
.site-svg .lot.is-ready rect { fill: var(--oak-soft); }
.site-svg .lot.is-focus rect { fill: var(--oak); stroke: var(--pine); stroke-width: 2.5; }
.plan-key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-2); font-size: var(--t-xs); color: var(--pine-2); }
.key { display: inline-block; width: 14px; height: 14px; border-radius: 2px; vertical-align: -2px; }
.key-on { background: var(--oak-soft); border: 1px solid var(--pine-2); }
.key-off { border: 1.5px dashed var(--oak-deep); }
.key-focus { background: var(--oak); border: 2px solid var(--pine); }

.opt-list, .lot-list { display: grid; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px var(--s-3); align-items: start; padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pine); }
.opt-name { font-weight: 600; font-size: var(--t-sm); }
.opt-adds { font-weight: 600; font-size: var(--t-sm); white-space: nowrap; }
.opt-detail { grid-column: 2 / -1; font-size: var(--t-xs); color: var(--pine-2); }
.opt.is-off { cursor: not-allowed; }
.opt.is-off .opt-name, .opt.is-off .opt-adds { color: var(--pine-2); }
.lot-teach { display: flex; gap: var(--s-2); align-items: flex-start; padding: var(--s-3); background: var(--plaster-2); border-radius: var(--r-control); font-size: var(--t-sm); }
.lot-teach .icon { flex: none; margin-top: 1px; color: var(--pine-2); }
.ready { display: grid; gap: var(--s-3); border-top: 1px solid var(--rule); padding-top: var(--s-4); font-size: var(--t-sm); }
.ready h2 { font-size: var(--t-md); }
.ready h3 { font-size: var(--t-sm); }
.ready-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.ready ul { margin: var(--s-1) 0 0; padding-left: 1.1rem; }

/* Review: the model screen. Everything in the home, side by side, above the fold. */
.review { padding-bottom: var(--s-8); }
.review-head { padding-bottom: var(--s-4); }
.review-head .lede { max-width: 80ch; }
.see-it, .review-grid, .sent { max-width: 92rem; margin: 0 auto; padding: 0 var(--gutter); }
.review-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.review-row figure { margin: 0; }
.review-row .frame { border-radius: var(--r-panel); }
.review-row figcaption { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--pine-2); font-weight: 560; }
.see-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-4); }
.see-in-label { font-weight: 640; font-size: var(--t-sm); }
.see-in-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.look-chip { min-height: 40px; padding: 0 var(--s-4); border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--white); cursor: pointer; font-size: var(--t-sm); font-weight: 560; }
.look-chip:hover { border-color: var(--pine); }
.look-chip[aria-pressed="true"] { background: var(--pine); color: var(--on-pine); border-color: var(--pine); }
.see-in-use { font-size: var(--t-sm); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.see-it .render-label { margin-top: var(--s-2); }
.review-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: var(--s-7); margin-top: var(--s-6); align-items: start; }
.review-main { display: grid; gap: var(--s-5); }
.name-field .input { max-width: 26rem; font-weight: 600; }
.price-table { width: 100%; }
.price-table caption { text-align: left; font-weight: 660; font-size: var(--t-lg); padding-bottom: var(--s-2); }
.price-table th { text-align: left; font-weight: 560; padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); }
.price-table td { text-align: right; padding: var(--s-2) 0 var(--s-2) var(--s-4); border-bottom: 1px solid var(--rule); font-weight: 600; white-space: nowrap; }
.price-table .pt-detail th, .price-table .pt-detail td { font-size: var(--t-sm); color: var(--pine-2); font-weight: 450; padding-left: var(--s-4); border-bottom-color: color-mix(in oklch, var(--rule) 55%, transparent); }
.price-table .pt-detail td { padding-left: var(--s-4); }
.price-table tfoot th, .price-table tfoot td { font-size: var(--t-xl); font-weight: 720; border-top: 2px solid var(--pine); border-bottom: 0; padding-top: var(--s-3); }
.pay { font-size: var(--t-sm); color: var(--pine-2); }
.pay strong { color: var(--pine); }
.review-side { position: sticky; top: 80px; display: grid; gap: var(--s-4); align-content: start; }
.side-actions { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.side-note { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-sm); color: var(--pine-2); }
.side-note .icon { flex: none; margin-top: 1px; }
.reset { justify-self: start; color: var(--pine-2); }
.confirm { padding: var(--s-3); background: var(--plaster-2); border-radius: var(--r-control); display: grid; gap: var(--s-2); font-size: var(--t-sm); }

.capture { display: grid; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--pine); border-radius: var(--r-panel); background: var(--white); }
.capture h2 { font-size: var(--t-lg); }
.cap-sub { font-size: var(--t-sm); color: var(--pine-2); margin-top: calc(-1 * var(--s-3)); }
.cap-more summary { cursor: pointer; font-weight: 560; font-size: var(--t-sm); min-height: 32px; display: flex; align-items: center; }
.cap-more[open] { display: grid; gap: var(--s-4); }
.cap-intent { border: 0; padding: 0; margin: 0; gap: var(--s-2); }
.cap-intent .choice { font-size: var(--t-sm); }
.consent { font-size: var(--t-xs); color: var(--pine-2); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pine) 50%), linear-gradient(135deg, var(--pine) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: var(--s-6); }

/* Sent state. The one authored moment in the tool: the home settles in, then the line appears. */
.sent { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--rule); outline: none; scroll-margin-top: 80px; }
.sent-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.sent-img { border-radius: var(--r-panel); }
.sent-img img { animation: settle var(--dur-3) var(--ease-out) both; }
.sent-copy { display: grid; gap: var(--s-3); }
.sent-copy h2 { font-size: var(--t-3xl); animation: appear 600ms var(--ease-out) 420ms both; }
.sent-concept { display: inline-flex; justify-self: start; align-items: center; gap: var(--s-2); background: var(--sage); color: var(--sage-ink); padding: var(--s-1) var(--s-3); border-radius: 99px; font-size: var(--t-sm); font-weight: 600; }
.sent-copy h3 { font-size: var(--t-md); margin-top: var(--s-2); }
.next-list { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--s-2); }
.copy-row { display: flex; gap: var(--s-2); }
.copy-row .input { font-size: var(--t-sm); }
@keyframes settle { from { transform: scale(1.06); opacity: 0.35; filter: saturate(0.5); } to { transform: none; opacity: 1; filter: none; } }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.handoff-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); margin-top: var(--s-7); }
.handoff-cols h3 { font-size: var(--t-md); margin-bottom: var(--s-3); }
.mail { border: 1px solid var(--rule); border-radius: var(--r-panel); background: var(--white); padding: var(--s-5); display: grid; gap: var(--s-3); font-family: var(--font-read); }
.mail-meta { font-family: var(--font-ui); font-size: var(--t-xs); color: var(--pine-2); }
.mail-meta span { display: inline-block; width: 4.5rem; font-weight: 600; color: var(--pine); }
.mail-meta:last-of-type { padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); }
.mail ul { margin: 0; padding-left: 1.1rem; }
.mail .tnum { font-family: var(--font-ui); font-size: var(--t-sm); }
.mail-concept { font-family: var(--font-ui); font-size: var(--t-xs); font-weight: 600; color: var(--sage-ink); }
.lead { margin: 0; }
.lead div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); }
.lead dt { font-weight: 640; }
.lead dd { margin: 0; }
.plain { margin-top: var(--s-4); }
.plain summary { cursor: pointer; font-weight: 560; font-size: var(--t-sm); }
.plain pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-ui); font-size: var(--t-sm); background: var(--plaster-2); padding: var(--s-4); border-radius: var(--r-control); margin: var(--s-3) 0 0; }

.fallback { max-width: 44rem; margin: 0 auto; padding: var(--s-8) var(--gutter); display: grid; gap: var(--s-4); }
.fallback h1 { font-size: var(--t-3xl); outline: none; }

/* Phone bar: running total and one action. */
.mbar { display: none; }

@media (max-width: 1099px) {
  .tbar-inner { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  .rail, .qprogress, .bar-note { grid-column: 1 / -1; grid-row: 2; }
  .rail {
    overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - 2.5rem), transparent);
  }
  .rail ol::after { content: ""; flex: none; width: 2rem; }
  .rail ol { justify-content: flex-start; }
  .rail a { padding: var(--s-2) var(--s-3) var(--s-3); }
  .qprogress { justify-content: flex-start; padding-bottom: var(--s-3); }
  .bar-note { display: none; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-images .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-grid { grid-template-columns: 1fr; }
  .panel, .review-side { position: static; }
  .build-look .panel { grid-template-columns: 1fr; }
  .build-look .includes { grid-row: auto; }
  .review-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

@media (max-width: 899px) {
  .tool { --gutter: var(--s-4); }
  .tool main { padding-bottom: 92px; }
  .mbar:not([hidden]) {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--plaster); border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px oklch(0.27 0.035 168 / 0.10);
  }
  .mbar-inner { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-4) calc(var(--s-2) + env(safe-area-inset-bottom)); }
  .mbar-thumb { border-radius: var(--r-control); }
  .mbar-total { display: grid; line-height: 1.2; }
  .mbar-total span { font-size: var(--t-xs); color: var(--pine-2); }
  .mbar-total strong { font-size: var(--t-md); font-weight: 700; }
  .mbar .btn { min-height: 48px; padding: 0 var(--s-4); }
  .continue-row .btn-primary, .review-side > .btn-primary { display: none; }
  .bar-save span { display: none; }
  .bar-save { max-width: none; }
  .bar-total { display: none; }
  .progress-card { grid-template-columns: 72px minmax(0, 1fr) auto; }
}

@media (max-width: 699px) {
  .view-head { padding-top: var(--s-5); }
  .view-head h1 { font-size: var(--t-2xl); }
  .quiz { padding-top: var(--s-5); }
  .quiz-title { font-size: 1.9rem; }
  .quiz-images .answers { gap: var(--s-2); }
  .quiz-images .answer-label { font-size: var(--t-sm); padding: var(--s-2) var(--s-3); }
  .picks { grid-template-columns: 1fr; }
  .pick-strip {
    display: flex; gap: var(--s-2); position: sticky; top: 100px; z-index: 10; overflow-x: auto;
    margin: 0 0 var(--s-4); padding: var(--s-2) var(--gutter); background: var(--plaster); border-bottom: 1px solid var(--rule);
  }
  .pick-strip button { flex: none; min-height: 40px; padding: 0 var(--s-3); border: 1px solid var(--rule-strong); border-radius: 99px; background: var(--white); font-size: var(--t-sm); font-weight: 560; cursor: pointer; }
  .seg { grid-template-columns: 1fr; }
  .compare { gap: var(--s-3); }
  .look { grid-template-columns: 1fr; }
  .look-delta { margin-top: 0; font-size: var(--t-sm); }
  .look-name { font-size: var(--t-sm); }
  .look.is-on .look-name::after { display: block; width: max-content; margin: var(--s-1) 0 0; }
  .review-row { grid-template-columns: 1fr; }
  .sent-hero, .handoff-cols { grid-template-columns: 1fr; }
  .lead div { grid-template-columns: 1fr; gap: 0; }
  .resume { grid-template-columns: 80px minmax(0, 1fr); }
  .resume .row { grid-column: 1 / -1; }
  .ready-cols { grid-template-columns: 1fr; }
  .room-btn { padding: 0 var(--s-4); }
}

@media print {
  .tbar, .mbar, .savebar, .skip-link, .see-in, .review-side, .notice, .banner, .change, .site-footer .inner p + p { display: none !important; }
  .review-grid { grid-template-columns: 1fr; }
  .review-row .frame { break-inside: avoid; }
  .sent { break-before: page; }
}

/* V2: discover selectors, the crafted home, the living room step and the claim. */
.discover { max-width: 92rem; margin: 0 auto; padding: var(--s-7) var(--gutter) var(--s-8); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr); gap: var(--s-7); align-items: start; }
.discover-title { font-size: 2.8rem; outline: none; }
.pick-group { border: 0; padding: 0; margin: var(--s-6) 0 0; }
.pick-group legend { font-weight: 660; font-size: var(--t-lg); padding: 0; margin-bottom: var(--s-3); }
.pick-hint { font-weight: 450; font-size: var(--t-sm); color: var(--pine-2); margin-left: var(--s-2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip-opt {
  position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-5);
  background: var(--white); border: 1px solid var(--rule-strong); border-radius: 999px; cursor: pointer;
  font-weight: 560; font-size: var(--t-base); transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.chip-opt:hover { border-color: var(--pine); }
.chip-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-opt:has(input:focus-visible) { outline: 2px solid var(--clay); outline-offset: 2px; }
.chip-opt.is-on { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.discover .quiz-actions { margin-top: var(--s-7); }
.discover-preview { position: sticky; top: 84px; display: grid; gap: var(--s-3); padding: var(--s-4); background: var(--oak-soft); border-radius: var(--r-panel); }
.discover-preview .frame { border-radius: var(--r-control); }
.dp-name { font-stretch: 110%; font-weight: 660; font-size: var(--t-lg); }
.dp-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid oklch(0.27 0.035 168 / 0.2); padding-top: var(--s-3); }
.dp-total span { font-size: var(--t-sm); color: var(--pine-2); }
.dp-total strong { font-size: var(--t-xl); font-weight: 700; }
.dp-empty { min-height: 16rem; display: grid; align-content: center; gap: var(--s-2); text-align: center; color: var(--pine-2); border: 1px dashed var(--oak-deep); border-radius: var(--r-control); padding: var(--s-5); }
.dp-empty p:first-child { font-weight: 600; color: var(--pine); }

.home-view { padding-bottom: var(--s-8); }
.home-grid { max-width: 92rem; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.hero-pick { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-panel); overflow: hidden; }
.hero-pick .pick-body { padding: var(--s-5) var(--s-6) var(--s-6); display: grid; gap: var(--s-3); }
.hero-pick h2 { font-stretch: 114%; font-size: var(--t-2xl); }
.hero-pick .frame { aspect-ratio: 16 / 9; }
.hero-pick .btn { justify-self: start; }
.alts { display: grid; gap: var(--s-5); }
.alts .pick .frame { aspect-ratio: 16 / 9; }
.home-view .quiet-row, .home-view .render-label { max-width: 92rem; margin: var(--s-4) auto 0; padding: 0 var(--gutter); }

.pending { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--t-sm); font-weight: 560; color: var(--pine-2); }
.frame[data-placeholder]::after {
  content: "Rendering pending"; position: absolute; inset: auto var(--s-3) var(--s-3) auto;
  font-size: var(--t-xs); font-weight: 600; color: var(--pine-2); background: var(--plaster); padding: 2px 8px; border-radius: 99px;
}
.frame[data-placeholder] img { opacity: 1; }

.review-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.claim-why { font-size: var(--t-sm); color: var(--pine-2); margin-top: calc(-1 * var(--s-2)); }
.slots { border: 0; padding: 0; margin: 0; }
.slots .chip-opt { min-height: 40px; padding: 0 var(--s-3); font-size: var(--t-sm); }

.sent.is-claimed .sent-copy h2 { color: var(--pine); }
.timeline { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: 0; counter-reset: tl; }
.timeline li { counter-increment: tl; position: relative; padding: 0 0 var(--s-4) var(--s-7); }
.timeline li::before {
  content: counter(tl); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--t-xs); font-weight: 700; color: var(--pine-2);
  background: var(--plaster); border: 1px solid var(--rule-strong);
}
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--rule-strong); }
.timeline .is-done::before { content: ""; background: var(--sage-ink); border-color: var(--sage-ink); }
.timeline .is-done::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); background-size: 16px; background-repeat: no-repeat; background-position: center; }
.timeline .is-next::before { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.tl-t { font-weight: 660; }
.timeline .is-next .tl-t { font-stretch: 108%; font-size: var(--t-md); }
.tl-x { font-size: var(--t-sm); color: var(--pine-2); }
.sent.is-claimed .timeline .is-done { animation: appear 600ms var(--ease-out) 700ms both; }
.sent.is-claimed .timeline .is-next { animation: appear 600ms var(--ease-out) 950ms both; }

@media (max-width: 1099px) {
  .discover, .home-grid { grid-template-columns: 1fr; }
  .discover-preview { position: static; }
  .review-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .discover { padding-top: var(--s-5); gap: var(--s-5); }
  .discover-title { font-size: 2rem; }
  .chip-opt { min-height: 44px; padding: 0 var(--s-4); font-size: var(--t-sm); }
  .hero-pick .pick-body { padding: var(--s-4); }
  .hero-pick h2 { font-size: var(--t-xl); }
  .room-switch { flex-wrap: wrap; }
}

.seg-rec { grid-column: 1 / -1; justify-self: start; margin-top: 2px; font-size: var(--t-xs); font-weight: 620; color: var(--pine); background: var(--oak); padding: 2px 8px; border-radius: 99px; }
.opt-detail .seg-rec { margin-left: var(--s-1); }
