.rf-onboarding {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: min(88vh, 880px);
  max-height: min(88dvh, 880px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line, #deded4);
  border-radius: 18px;
  background: var(--paper, #faf9f5);
  color: var(--ink, #252921);
  box-shadow: 0 20px 80px #16221c30;
  overscroll-behavior: contain;
}
.rf-onboarding::backdrop { background: rgba(24, 29, 24, .57); }
.rf-ob-inner { padding: 25px 34px 28px; }
.rf-ob-bar, .rf-ob-brand, .rf-ob-progress, .rf-ob-foot { display: flex; align-items: center; }
.rf-ob-bar { justify-content: space-between; gap: 12px; }
.rf-ob-brand { font: 600 15px var(--sans, sans-serif); gap: 9px; }
.rf-ob-brand img { width: 26px; height: 26px; }
.rf-ob-text { padding: 8px 2px; min-height: 44px; background: transparent; color: var(--ink); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.rf-ob-progress { gap: 11px; margin: 22px 0 15px; color: var(--muted, #59625b); font-size: 12px; }
.rf-ob-track { display: flex; gap: 4px; }
.rf-ob-track span { width: 25px; height: 3px; background: var(--line); border-radius: 2px; }
.rf-ob-track .is-active { background: var(--forest, #334534); }
.rf-ob-intro h2 { font: 500 clamp(29px, 5.5vw, 42px)/1.08 var(--serif, Georgia,serif); letter-spacing: -.045em; max-width: 18ch; margin: 0; }
.rf-ob-intro h2:focus { outline: none; }
.rf-ob-intro p { color: var(--muted, #586156); font-size: 15px; line-height: 1.48; margin: 11px 0 23px; max-width: 54ch; }
.rf-ob-group { padding: 0; margin: 0 0 19px; border: 0; min-width: 0; }
.rf-ob-group legend { padding: 0; margin: 0 0 9px; font-size: 14px; font-weight: 650; }
.rf-ob-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-ob-choice { position: relative; display: inline-flex; align-items: center; gap: 9px; line-height: 1.23; font-size: 14px; padding: 10px 13px; min-height: 44px; border-radius: 24px; background: var(--white, #fff); border: 1px solid var(--line, #d7dacd); cursor: pointer; }
.rf-ob-choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.rf-ob-indicator { width: 15px; height: 15px; border: 1px solid #8b9688; border-radius: 4px; flex-shrink: 0; }
.rf-ob-choice input:checked + .rf-ob-indicator { border-color: var(--forest); background: var(--forest, #304837); position: relative; }
.rf-ob-choice input:checked + .rf-ob-indicator::after { content: ''; position: absolute; width: 7px; height: 4px; border-left: 2px solid white; border-bottom: 2px solid white; left: 2px; top: 3px; transform: rotate(-45deg); box-sizing: content-box; }
.rf-ob-choice:has(input:checked) { background: #edf1e6; border-color: #657a5c; color: #203224; }
.rf-ob-choice:focus-within { outline: 2px solid var(--forest, #304837); outline-offset: 2px; }
.rf-ob-challenges { display: grid; grid-template-columns: 1fr 1fr; }
.rf-ob-challenges .rf-ob-choice { border-radius: 10px; min-height: 60px; }
.rf-ob-foot { justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 23px; padding-top: 17px; }
.rf-ob-next { margin-inline-start: auto; min-height: 44px; }
.rf-ob-error { color: #8a2c23; margin-top: 12px; }
.rf-ob-fields [data-ob-fit] { max-width: 100%; }
@media (max-width: 570px) {
  .rf-onboarding { width: calc(100vw - 20px); border-radius: 15px; max-height: 94dvh; }
  .rf-ob-inner { padding: 16px 20px 20px; }
  .rf-ob-progress { margin-top: 12px; }
  .rf-ob-challenges { grid-template-columns: 1fr; }
  .rf-ob-challenges .rf-ob-choice { min-height: 46px; }
  .rf-ob-choice { padding: 9px 11px; }
}
.rf-ob-personal {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rf-ob-personal label {display:flex;flex-wrap:wrap;align-content:flex-start;align-items:baseline;gap:4px 6px;font-weight:650;font-size:.92rem}
.rf-ob-personal small {color:var(--muted,#586156);font-size:.78rem;font-weight:400}
.rf-ob-personal select,.rf-ob-personal input {box-sizing:border-box;width:100%;min-height:44px;padding:8px 11px;border:1px solid #9aa694;border-radius:9px;background:white;color:var(--ink);font:inherit;font-weight:450}
.rf-ob-personal [data-ob-description-field] {grid-column:1/-1}
.rf-ob-personal [hidden] {display:none}
.rf-ob-personal-note {margin:8px 0 18px;line-height:1.45;font-size:.85rem;color:var(--muted,#586156)}
.rf-ob-bar + .rf-ob-section {margin-top:22px}
@media(max-width:520px){.rf-ob-personal{grid-template-columns:1fr}}
.rf-form-shape{display:grid;gap:.35rem;max-width:24rem;margin-top:1rem;font-size:.95rem;font-weight:650}
.rf-form-shape select{width:100%;min-height:44px;padding:.5rem .6rem;border:1px solid #9aa694;border-radius:9px;color:var(--ink);background:white;font:inherit;font-weight:450}
