/* Build a Room page (build-a-room.html). Reuses the tokens in site.css. All classes start with rb- */

.rb-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.rb-page .btn { font-family: inherit; cursor: pointer; line-height: 1.2; }
.rb-page .btn[disabled] { cursor: progress; opacity: .75; transform: none; }
.rb-page button { font-family: inherit; }
.rb-page button:focus-visible, .rb-page input:focus-visible, .rb-page textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.rb-page [hidden] { display: none !important; }

/* ---------- Hero ---------- */
.rb-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--mint) 0%, var(--white) 100%); padding: 64px 0 40px; }
.rb-hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rb-hero-inner { position: relative; display: grid; gap: 18px; justify-items: start; }
.rb-hero h1 { font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -.02em; max-width: 880px; }
.rb-hero h1 span { color: var(--green); }
.rb-reassure { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.rb-reassure li {
  display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 18px 6px 6px; font-weight: 700; font-size: 15px; box-shadow: var(--shadow);
}
.rb-reassure .icon { width: 36px; height: 36px; border-radius: 50%; }
.rb-reassure .icon svg { width: 18px; height: 18px; }

/* ---------- Layout ---------- */
.rb-main { padding: 12px 0 96px; }
.rb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start; }
.rb-card {
  min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lift);
  padding: 30px 34px 26px;
}
.rb-noscript { margin-bottom: 20px; }

/* ---------- Step bar ---------- */
.rb-stepbar ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; --progress: 0%; }
.rb-stepbar ol::before, .rb-stepbar ol::after {
  content: ""; position: absolute; top: 18px; left: 10%; height: 3px; border-radius: 2px; background: var(--line);
}
.rb-stepbar ol::before { right: 10%; }
.rb-stepbar ol::after { width: calc(.8 * var(--progress)); background: var(--lime); transition: width .5s var(--ease); }
.rb-stepbar li { position: relative; z-index: 1; display: flex; justify-content: center; }
.rb-stepbar button {
  background: none; border: 0; padding: 0 4px; display: grid; justify-items: center; gap: 8px; cursor: pointer; color: var(--grey);
  font-size: 13.5px; font-weight: 700; border-radius: 12px;
}
.rb-stepbar button[disabled] { cursor: default; }
.rb-dot {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--white);
  border: 2px solid var(--line); color: var(--dim); font-size: 15px; transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.rb-dot-tick { width: 18px; height: 18px; display: none; }
.rb-stepbar li.reach .rb-dot { border-color: var(--lime); color: var(--green); }
.rb-stepbar li.reach button:hover .rb-dot { transform: scale(1.08); }
.rb-stepbar li.done .rb-dot { background: var(--lime); border-color: var(--lime); color: var(--white); }
.rb-stepbar li.done .rb-dot b { display: none; }
.rb-stepbar li.done .rb-dot-tick { display: block; }
.rb-stepbar li.on .rb-dot { background: var(--green); border-color: var(--green); color: var(--white); box-shadow: 0 0 0 6px var(--mint-2); }
.rb-stepbar li.on button { color: var(--ink); }

/* ---------- Steps ---------- */
.rb-step-head { margin: 30px 0 22px; display: grid; gap: 8px; }
.rb-step-count { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green); }
.rb-step-head h2 { font-size: clamp(26px, 3vw, 34px); }
.rb-step-head h2:focus { outline: none; }
.rb-help { color: var(--grey); font-size: 16px; }
.rb-hint { color: var(--grey); font-size: 14px; margin-top: 2px; }
.rb-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rb-enter { animation: rb-in .45s var(--ease) both; }
@keyframes rb-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rb-inline-msg { margin-top: 14px; color: #b42318; font-weight: 700; font-size: 15px; }
.rb-link { background: none; border: 0; padding: 2px 0; color: var(--green); font: inherit; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rb-link:hover { color: #166534; }
.rb-help .rb-link { font-size: inherit; margin-left: 4px; }
.rb-opt-tag { font-size: 12px; font-weight: 700; color: var(--dim); background: var(--mint); border-radius: 999px; padding: 2px 8px; margin-left: 4px; vertical-align: 1px; }
.rb-req { color: var(--green); }

/* Shared picked-card look: a hidden native input followed by .rb-box */
.rb-space input, .rb-feat input, .rb-optcard input, .rb-pill input, .rb-switch input, .rb-check input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.rb-space, .rb-feat, .rb-optcard, .rb-pill { position: relative; display: block; cursor: pointer; }
.rb-box {
  position: relative; height: 100%; background: var(--white); border: 2px solid var(--line); border-radius: 16px;
  transition: border-color .25s, background .25s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.rb-space:hover .rb-box, .rb-feat:hover .rb-box, .rb-optcard:hover .rb-box { border-color: #c9dcb2; transform: translateY(-2px); box-shadow: var(--shadow); }
input:checked + .rb-box { border-color: var(--green); background: #fbfdf8; box-shadow: 0 0 0 4px var(--mint-2); }
input:focus-visible + .rb-box, input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 3px; }

/* Step 1: spaces */
.rb-spaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.rb-space .rb-box { display: flex; flex-direction: column; padding: 10px 10px 14px; gap: 4px; }
.rb-ill-wrap { display: block; background: var(--mint); border-radius: 11px; margin-bottom: 8px; overflow: hidden; transition: background .25s; }
.rb-ill { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; transition: transform .5s var(--ease); }
.rb-space:hover .rb-ill { transform: scale(1.05); }
input:checked + .rb-box .rb-ill-wrap { background: var(--mint-2); }
.rb-space-t { font-weight: 700; font-size: 15.5px; line-height: 1.25; padding: 0 4px; }
.rb-space-d { font-size: 13px; color: var(--grey); line-height: 1.35; padding: 0 4px; }
.rb-tickmark {
  position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--white);
  display: grid; place-items: center; transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); box-shadow: var(--shadow);
}
.rb-tickmark svg { width: 16px; height: 16px; }
input:checked + .rb-box .rb-tickmark { transform: scale(1); }

.rb-ill .s { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; }
.rb-ill .w, .rb-ill .w-g > * { fill: var(--white); stroke: var(--green); stroke-width: 1.8; stroke-linejoin: round; }
.rb-ill .m, .rb-ill .m-g > * { fill: var(--mint-2); stroke: var(--green); stroke-width: 1.5; }
.rb-ill .l, .rb-ill .l-g > * { fill: var(--lime); }
.rb-ill .a { fill: none; stroke: var(--lime); stroke-width: 2.4; stroke-linecap: round; }
.rb-ill .a.thick { stroke-width: 4.5; }
.rb-ill .dash-s { fill: var(--white); stroke: var(--green); stroke-width: 2; stroke-dasharray: 5 5; }

/* Step 2: people */
.rb-people { background: var(--mint); border-radius: 20px; padding: 24px; display: grid; gap: 18px; justify-items: center; }
.rb-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rb-chip {
  background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 16px;
  color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.rb-chip:hover { border-color: var(--lime); transform: translateY(-2px); }
.rb-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.rb-big-stepper { display: flex; align-items: center; gap: 22px; }
.rb-round {
  width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--green); background: var(--white); color: var(--green);
  display: grid; place-items: center; cursor: pointer; flex: none; transition: background .2s, transform .2s var(--ease);
}
.rb-round svg { width: 24px; height: 24px; }
.rb-round:hover { background: var(--mint-2); }
.rb-round:active { transform: scale(.94); }
.rb-round.sm { width: 42px; height: 42px; }
.rb-round.sm svg { width: 18px; height: 18px; }
.rb-big-num { display: grid; justify-items: center; line-height: 1; }
.rb-big-num input {
  width: 4ch; font: 700 60px/1 Arial, sans-serif; color: var(--ink); text-align: center; border: 0; background: transparent;
  padding: 0; border-radius: 12px; -moz-appearance: textfield; appearance: textfield;
}
.rb-big-num span { font-size: 15px; font-weight: 700; color: var(--green); margin-top: 4px; }
.rb-page input[type="number"]::-webkit-inner-spin-button, .rb-page input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.rb-range {
  --pct: 50%; width: 100%; max-width: 520px; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.rb-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--lime) var(--pct), var(--line) var(--pct)); }
.rb-range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--line); }
.rb-range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--lime); }
.rb-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--green); box-shadow: var(--shadow);
}
.rb-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 3px solid var(--green); box-shadow: var(--shadow); }
.rb-range-ends { width: 100%; max-width: 520px; display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-top: -12px; }

.rb-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.rb-sub { border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.rb-sub-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16.5px; }
.rb-sub-title svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.rb-stepper { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.rb-stepper input {
  width: 72px; height: 44px; text-align: center; font: 700 22px Arial, sans-serif; border: 2px solid var(--line); border-radius: 12px;
  -moz-appearance: textfield; appearance: textfield; color: var(--ink);
}
.rb-size { display: flex; align-items: flex-end; gap: 10px; margin-top: 6px; transition: opacity .25s; }
.rb-size label { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 6px; font-size: 13px; color: var(--grey); font-weight: 700; }
.rb-size label span { grid-column: 1 / -1; }
.rb-size input { width: 76px; height: 44px; font: 700 18px Arial, sans-serif; text-align: center; border: 2px solid var(--line); border-radius: 12px; -moz-appearance: textfield; appearance: textfield; color: var(--ink); }
.rb-size em { font-style: normal; color: var(--grey); }
.rb-times { font-size: 20px; color: var(--dim); padding-bottom: 10px; }
.rb-size.off { opacity: .4; }

/* Switch */
.rb-switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; font-size: 15px; }
.rb-switch-ui { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--line); flex: none; transition: background .25s; }
.rb-switch-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s var(--ease);
}
.rb-switch input:checked + .rb-switch-ui { background: var(--lime); }
.rb-switch input:checked + .rb-switch-ui::after { transform: translateX(20px); }
.rb-switch input:focus-visible + .rb-switch-ui { outline: 3px solid var(--lime); outline-offset: 3px; }
.rb-switch.big { align-items: flex-start; }
.rb-switch.big b { display: block; font-size: 17.5px; }
.rb-switch.big small { display: block; font-weight: 400; font-size: 14.5px; color: var(--grey); margin-top: 2px; }

/* Step 3: features */
.rb-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.rb-feat .rb-box { display: grid; grid-template-columns: 46px 1fr 26px; gap: 12px; align-items: start; padding: 14px 14px 14px 12px; }
.rb-feat .icon { width: 46px; height: 46px; border-radius: 12px; transition: background .25s, color .25s; }
.rb-feat .icon svg { width: 23px; height: 23px; }
input:checked + .rb-box .icon { background: var(--green); color: var(--white); }
.rb-feat-body { display: grid; gap: 3px; }
.rb-feat-t { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.rb-feat-d { font-size: 13.5px; color: var(--grey); line-height: 1.4; }
.rb-sugg { justify-self: start; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--green); background: var(--mint-2); border-radius: 999px; padding: 2px 9px; }
.rb-toggle {
  width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: var(--white); color: var(--white);
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.rb-toggle svg { width: 15px; height: 15px; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
input:checked + .rb-box .rb-toggle { background: var(--lime); border-color: var(--lime); }
input:checked + .rb-box .rb-toggle svg { transform: scale(1); }

/* Step 4: preferences */
.rb-prefs { display: grid; gap: 28px; }
.rb-pref legend { font-weight: 700; font-size: 18px; padding: 0; }
.rb-pref .rb-hint { margin: 2px 0 12px; }
.rb-optcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.rb-optcard .rb-box { display: grid; align-content: start; gap: 4px; padding: 14px; }
.rb-optcard .icon { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 6px; }
.rb-optcard .icon svg { width: 21px; height: 21px; }
.rb-opt-t { font-weight: 700; font-size: 15px; line-height: 1.3; }
.rb-opt-d { font-size: 13px; color: var(--grey); line-height: 1.35; }
.rb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-pill > span {
  display: inline-block; padding: 10px 18px; border: 2px solid var(--line); border-radius: 999px; background: var(--white);
  font-weight: 700; font-size: 15px; color: var(--ink); transition: background .2s, border-color .2s, color .2s;
}
.rb-pill:hover > span { border-color: var(--lime); }
.rb-pill input:checked + span { background: var(--green); border-color: var(--green); color: var(--white); }
.rb-other { margin-top: 10px; max-width: 340px; }

/* Step 5: request form */
.rb-block { margin-top: 24px; }
.rb-block > .group-label { margin-bottom: 14px; }
.rb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.rb-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.rb-field > label, .rb-field > legend { font-weight: 700; font-size: 15px; padding: 0; }
.rb-field > legend { margin-bottom: 6px; }
.rb-page input:not([type]), .rb-page input[type="email"], .rb-page input[type="tel"], .rb-page input[type="date"], .rb-page textarea, .rb-other input {
  width: 100%; font: 16px/1.4 Arial, sans-serif; color: var(--ink); padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.rb-page input[type="date"] { min-height: 50px; }
.rb-page textarea { resize: vertical; min-height: 130px; }
.rb-page input:focus, .rb-page textarea:focus, .rb-stepper input:focus, .rb-size input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); outline: none; }
.rb-page input::placeholder, .rb-page textarea::placeholder { color: #9aa394; }
.rb-err { color: #b42318; font-size: 14px; font-weight: 700; }
.rb-err:empty { display: none; }
.has-err input, .has-err textarea { border-color: #d9534f; background: #fffafa; }
.rb-visit { background: var(--mint); border-radius: 20px; padding: 20px 22px; }
.rb-visit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); animation: rb-in .4s var(--ease) both; }
.rb-span2 { grid-column: 1 / -1; }

.rb-check { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; cursor: pointer; font-weight: 700; font-size: 15.5px; }
.rb-check-ui {
  width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--green); background: var(--white); color: var(--white);
  display: grid; place-items: center; transition: background .2s;
}
.rb-check-ui svg { width: 17px; height: 17px; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.rb-check input:checked + .rb-check-ui { background: var(--green); }
.rb-check input:checked + .rb-check-ui svg { transform: scale(1); }
.rb-check input:focus-visible + .rb-check-ui { outline: 3px solid var(--lime); outline-offset: 3px; }
.rb-check small { display: block; font-weight: 400; font-size: 14px; color: var(--grey); margin-top: 3px; }
.rb-consent-block { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.rb-consent-block.has-err { border-color: #d9534f; background: #fffafa; }
.rb-consent-block .rb-err { margin: 8px 0 0 40px; }

.rb-errsum, .rb-senderr { border-left: 4px solid #d9534f; background: #fff6f4; border-radius: 0 14px 14px 0; padding: 14px 18px; font-size: 15px; }
.rb-errsum:focus { outline: none; }
.rb-errsum ul { margin: 6px 0 0; padding-left: 20px; }
.rb-errsum a { color: #b42318; font-weight: 700; }
.rb-senderr { margin-top: 20px; }
.rb-copy-area { width: 100%; height: 140px; margin-top: 12px; font: 13px/1.45 Consolas, "Courier New", monospace !important; color: var(--grey) !important; background: var(--white); }

.rb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; align-items: center; }
.rb-submit-row { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
#rb-send.is-busy svg { animation: rb-fly 1s var(--ease) infinite; }
@keyframes rb-fly { 50% { transform: translate(3px, -3px); } }

/* Nav */
.rb-nav { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.rb-nav #rb-next-btn { margin-left: auto; }
.rb-restart { margin-left: 4px; color: var(--grey); font-weight: 700; }
.rb-jump { display: none; }

/* Done */
.rb-done { text-align: center; padding: 28px 0 10px; display: grid; justify-items: center; gap: 14px; }
.rb-done .lead { margin: 0 auto; }
.rb-done h2 { font-size: clamp(28px, 3.4vw, 38px); }
.rb-done h2:focus { outline: none; }
.rb-tick { width: 104px; height: 104px; margin-bottom: 4px; }
.rb-tick-bg { fill: var(--mint-2); transform-box: fill-box; transform-origin: center; animation: rb-pop .6s cubic-bezier(.3, 1.5, .5, 1) both; }
.rb-tick-ring { fill: none; stroke: var(--lime); stroke-width: 5; stroke-dasharray: 277; stroke-dashoffset: 277; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 48px 48px; animation: rb-draw .8s .15s var(--ease) forwards; }
.rb-tick-mark { fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: rb-draw .45s .7s var(--ease) forwards; }
@keyframes rb-draw { to { stroke-dashoffset: 0; } }
@keyframes rb-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rb-email-note { text-align: left; background: #fffbea; border: 2px solid #f0d76a; border-radius: 16px; padding: 16px 18px; max-width: 620px; }
.rb-email-note p { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-weight: 700; font-size: 16px; }
.rb-email-note p svg { width: 24px; height: 24px; color: var(--green); }
.rb-email-note .rb-actions { margin-top: 10px; }
.rb-done .group-label { margin: 18px 0 0; }
.rb-next { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; width: 100%; }
.rb-next li { background: var(--mint); border-radius: 18px; padding: 18px; display: grid; grid-template-columns: 36px 1fr; gap: 12px; animation: rb-in .5s var(--ease) both; }
.rb-next li:nth-child(2) { animation-delay: .1s; }
.rb-next li:nth-child(3) { animation-delay: .2s; }
.rb-next-n { width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--white); font-weight: 700; display: grid; place-items: center; }
.rb-next b { display: block; font-size: 16px; }
.rb-next p { font-size: 14px; color: var(--grey); }
.rb-done > .rb-actions { justify-content: center; margin-top: 18px; }

/* ---------- Live preview ---------- */
.rb-preview {
  position: sticky; top: 92px; background: var(--white); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
  padding: 20px 20px 18px; max-height: calc(100vh - 108px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  /* soft shadows at the top and bottom edge when the list scrolls */
  background:
    linear-gradient(var(--white) 30%, rgba(255, 255, 255, 0)) top / 100% 40px no-repeat local,
    linear-gradient(rgba(255, 255, 255, 0), var(--white) 70%) bottom / 100% 40px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(40, 60, 20, .14), transparent) top / 100% 14px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(40, 60, 20, .14), transparent) bottom / 100% 14px no-repeat scroll,
    var(--white);
}
.rb-prev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rb-prev-head h2 { font-size: 20px; }
.rb-live {
  order: 2; display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: var(--white); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.rb-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #BBF7D0; animation: blink 1.6s infinite; }
.rb-plan { background: var(--mint); border-radius: 18px; padding: 8px; }
.rb-plan svg { display: block; width: 100%; height: auto; }

.rb-p-floor { fill: var(--white); }
.rb-p-wall { fill: none; stroke: var(--green); stroke-width: 2.5; }
.rb-p-corridor { fill: var(--mint-2); opacity: .7; }
.rb-p-window { stroke: #86EFAC; stroke-width: 6; stroke-linecap: round; }
.rb-p-doorgap { stroke: var(--white); stroke-width: 5; }
.rb-p-door { fill: none; stroke: var(--green); stroke-width: 1.4; stroke-dasharray: 3 3; }
.rb-p-table { fill: var(--mint-2); stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; }
.rb-p-seat { fill: var(--white); stroke: var(--green); stroke-width: 1.5; }
.rb-p-dot { fill: var(--lime); opacity: .85; }
.rb-p-tier { fill: none; stroke: var(--line); stroke-width: 2; }
.rb-p-stage { fill: var(--mint-2); stroke: var(--green); stroke-width: 1.6; }
.rb-p-sofa { fill: var(--mint-2); stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; }
.rb-p-mon { fill: #2c3527; }
.rb-p-screen { fill: #2c3527; }
.rb-p-glow { fill: var(--lime); opacity: .55; }
.rb-p-projscreen { fill: var(--white); stroke: var(--green); stroke-width: 1.5; }
.rb-p-proj { fill: var(--white); stroke: var(--green); stroke-width: 1.5; }
.rb-p-limefill { fill: var(--lime); }
.rb-p-ledgrid { stroke: var(--lime); stroke-width: 1; opacity: .55; }
.rb-p-pen { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; }
.rb-p-label { font: 700 11px Arial, sans-serif; fill: var(--grey); }
.rb-p-tiny { font: 700 9px Arial, sans-serif; fill: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.rb-disp { opacity: 0; transition: opacity .45s var(--ease); }
.rb-disp.on { opacity: 1; }

.rb-mk-in {
  transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .25s;
}
.rb-mk.on .rb-mk-in { transform: scale(1); opacity: 1; }
.rb-mk-bg { fill: var(--white); stroke: var(--lime); stroke-width: 2.2; filter: drop-shadow(0 1px 1.5px rgba(40, 60, 20, .18)); }
.rb-mk-ic { color: var(--green); }
.rb-mk-ic.rb-mk-rec { color: #e0452c; }
.rb-mk-bg.rb-mk-rec { stroke: #f2a597; }
.rb-mk-ring { fill: rgba(34, 197, 94, .12); stroke: var(--lime); stroke-width: 1.2; stroke-dasharray: 3 3; }
.rb-mk-cone { opacity: .9; }
.rb-mk-blinds { fill: var(--white); stroke: var(--green); stroke-width: 1.4; }
.rb-mk-blindline { stroke: var(--green); stroke-width: 1; opacity: .6; }

.rb-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.rb-summary div { background: var(--mint); border-radius: 12px; padding: 9px 10px; min-width: 0; }
.rb-summary dt { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.rb-summary dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }

.rb-kit h3 { font-size: 17px; margin: 20px 0 4px; }
.rb-kit-group { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin: 14px 0 8px; }
.rb-ticks { margin: 0; gap: 8px; }
.rb-ticks li { font-size: 14.5px; grid-template-columns: 20px 1fr; gap: 10px; line-height: 1.45; animation: rb-in .35s var(--ease) both; }
.rb-ticks li::before { width: 20px; height: 20px; background-size: 12px; }
.rb-kit-empty { color: var(--grey); font-size: 14.5px; margin-top: 8px; }
.rb-survey { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--grey); }
.rb-survey svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 1px; }

/* The shared footer button picks up the footer link colour when pages.css is not loaded */
body[data-page="build"] .site-footer .btn-primary { color: var(--white); }

/* Print sheet: hidden on screen */
.rb-print { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .rb-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
  .rb-card { padding: 26px 24px 22px; }
}
@media (max-width: 960px) {
  .rb-layout { grid-template-columns: 1fr; }
  .rb-preview { position: static; max-height: none; overflow: visible; }
  .rb-jump { display: inline; }
}
@media (max-width: 720px) {
  .rb-hero { padding: 40px 0 28px; }
  .rb-reassure { gap: 8px; }
  .rb-reassure li { font-size: 14px; padding-right: 14px; }
  .rb-main { padding-bottom: 64px; }
  .rb-card { padding: 20px 16px 18px; border-radius: 22px; }
  .rb-preview { padding: 16px 14px; border-radius: 22px; }
  .rb-stepbar button { font-size: 11.5px; padding: 0; }
  .rb-dot { width: 32px; height: 32px; font-size: 14px; }
  .rb-stepbar ol::before, .rb-stepbar ol::after { top: 15px; }
  .rb-stepbar li:not(.on) .rb-step-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rb-stepbar li.on .rb-step-name { white-space: nowrap; }
  .rb-step-head { margin: 22px 0 18px; }
  .rb-spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rb-space-d { display: none; }
  .rb-tickmark { top: 12px; right: 12px; width: 24px; height: 24px; }
  .rb-people { padding: 18px 12px; }
  .rb-big-stepper { gap: 14px; }
  .rb-big-num input { font-size: 46px; }
  .rb-round { width: 50px; height: 50px; }
  .rb-sub-grid, .rb-fields, .rb-visit-fields { grid-template-columns: 1fr; }
  .rb-feats { grid-template-columns: 1fr; }
  .rb-optcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-visit { padding: 16px; }
  .rb-next { grid-template-columns: 1fr; }
  .rb-nav { flex-wrap: wrap; gap: 12px 10px; }
  .rb-nav .btn { padding: 12px 20px; }
  .rb-restart, .rb-jump { order: 3; flex: 1 1 40%; text-align: center; margin: 0; font-size: 14px; }
  .rb-submit-row .btn { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .rb-optcards { grid-template-columns: 1fr; }
  .rb-size input { width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .rb-mk-in { transform: none; }
  .rb-mk:not(.on) .rb-mk-in { opacity: 0; }
  .rb-tick-ring, .rb-tick-mark { stroke-dashoffset: 0; }
}

/* ---------- Print: a one page A4 request ---------- */
@media print {
  @page { size: A4; margin: 12mm 13mm; }
  html, body { background: #fff !important; }
  body { font-size: 9.5pt; line-height: 1.35; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .draft-ribbon, .site-header, .site-footer, .rb-hero, .rb-main { display: none !important; }
  .rb-print { display: block !important; color: #1a1a1a; }
  .rbp-head { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid #22c55e; padding-bottom: 8px; margin-bottom: 8px; }
  .rbp-head img { height: 34px; width: auto; }
  .rbp-head h1 { font-size: 17pt; color: #15803d; }
  .rbp-head p { font-size: 10pt; color: #555e50; margin-top: 2px; }
  .rbp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8mm; }
  .rb-print h2 { font-size: 8.5pt; letter-spacing: .14em; text-transform: uppercase; color: #15803d; border-bottom: 1px solid #d9eddf; padding-bottom: 2px; margin: 9px 0 4px; }
  .rb-print table { width: 100%; border-collapse: collapse; }
  .rb-print th { text-align: left; font-weight: 400; color: #555e50; width: 40%; padding: 1.5px 6px 1.5px 0; vertical-align: top; }
  .rb-print td { font-weight: 700; padding: 1.5px 0; vertical-align: top; }
  .rb-print ul { margin: 0; padding-left: 14px; }
  .rb-print li { margin: 1px 0; }
  .rbp-kit { columns: 2; column-gap: 8mm; }
  .rbp-kit li { break-inside: avoid; }
  .rbp-remarks { white-space: pre-wrap; }
  .rbp-plan { margin-top: 8px; background: #F0FDF4; border-radius: 8px; padding: 4px; }
  .rbp-plan svg { width: 100%; height: auto; max-height: 62mm; display: block; }
  .rbp-plan .rb-mk-in { transform: none !important; opacity: 1 !important; }
  .rbp-plan .rb-mk:not(.on) { display: none; }
  .rbp-plan .rb-disp:not(.on) { display: none; }
  .rbp-foot { margin-top: 10px; padding-top: 6px; border-top: 1px solid #d9eddf; font-size: 8pt; color: #555e50; }
}
