/* SMSFX profile setup */
dialog.onboarding-dialog {
  width: min(950px, calc(100vw - 40px));
  max-width: none;
  max-height: min(90dvh, 800px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d7ded3;
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
}
.onboarding-dialog::backdrop {
  background: rgb(16 32 24 / 74%);
  backdrop-filter: blur(3px);
}
.onboard-shell {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
  min-height: min(540px, 77dvh);
}
.onboard-aside {
  position: relative;
  isolation: isolate;
  display: flex;
  overflow: hidden;
  min-width: 0;
  color: #fff;
  background: #193e32;
}
.onboard-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 41% center;
}
.onboard-aside::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgb(16 42 31 / 72%) 0%, rgb(17 39 27 / 12%) 40%, rgb(18 39 27 / 74%) 71%, #173428 100%);
}
.onboard-aside-content {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 38px);
}
.onboard-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font: 730 25px/1 var(--sans);
  letter-spacing: -1.1px;
}
.onboard-aside .logomark { transform: scale(.83); transform-origin: left center; }
.onboard-symbol { display: inline-flex; color: var(--lime); }
.onboard-aside-title {
  margin: auto 0 10px;
  max-width: 12ch;
  font: 400 clamp(34px, 3.8vw, 54px)/.99 var(--serif);
  letter-spacing: -.05em;
}
.onboard-aside-foot {
  margin: 0;
  padding-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #e2ebda;
}
.onboard-main {
  min-width: 0;
  padding: clamp(23px, 3vw, 41px) clamp(24px, 3.4vw, 45px) clamp(22px, 2.8vw, 34px);
  display: flex;
  flex-direction: column;
}
.onboard-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.onboard-step {
  color: #446345;
  font: 650 12px/1.4 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.onboard-close {
  min-height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #d9e1d5;
  border-radius: 99px;
  background: #fff;
  color: #436044;
}
.onboard-close:hover, .onboard-back:hover { background: #f1f5ed; }
.onboard-close svg { width: 17px; height: 17px; }
.onboard-progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin: 13px 0 clamp(21px, 3vw, 34px); }
.onboard-progress span { height: 4px; background: #e4e9df; border-radius: 3px; }
.onboard-progress .done { background: #54774f; }
.onboard-form { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.onboard-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.onboard-title:focus { outline: none; }
.onboard-title {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  color: #173c30;
  font: 400 clamp(30px, 3.0vw, 43px)/1.06 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.onboard-hint {
  margin: 11px 0 20px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 15px;
}
.onboard-choices {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 9px;
  margin: 17px 0 5px;
}
.onboard-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  max-width: 100%;
  border: 1px solid #b4c1b0;
  border-radius: 999px;
  background: #fff;
  padding: 10px 16px 10px 12px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 550;
  color: #293c2d;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.onboard-pill:hover { background: #f4f7f0; border-color: #799070; }
.onboard-pill:has(input:checked) { background: #eaf2dc; border-color: #50704b; color: #193e2d; }
.onboard-pill:has(input:focus-visible) { outline: 3px solid #547844; outline-offset: 3px; }
.onboard-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  clip-path: inset(50%);
}
.onboard-indicator {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 1.5px solid #7b8c76;
  border-radius: 50%;
  background: #fff;
}
.onboard-pill:has(input:checked) .onboard-indicator {
  color: #fff;
  border-color: #34583b;
  background: #34583b;
}
.onboard-pill:has(input[type="radio"]:checked) .onboard-indicator::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.onboard-pill:has(input[type="checkbox"]) .onboard-indicator { border-radius: 4px; }
.onboard-pill:has(input[type="checkbox"]:checked) .onboard-indicator::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}
.onboard-label { min-width: 0; }
.onboard-label small { display: block; margin-top: 3px; color: #50624f; font-size: 13px; line-height: 1.45; font-weight: 400; }
.onboard-choices.paths { display: grid; grid-template-columns: 1fr; }
.onboard-choices.paths .onboard-pill {
  width: 100%;
  justify-content: flex-start;
  min-height: 55px;
  border-radius: 23px;
  padding: 12px 17px;
}
.onboard-error { margin: 12px 0 0; color: #904529; font-size: 14px; line-height: 1.4; }
.onboard-error:empty { display: none; }
.onboard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  margin-top: auto;
}
.onboard-back, .onboard-next {
  min-height: 44px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 650;
}
.onboard-back { border-color: #cdd8c7; color: #254830; background: #fff; }
.onboard-next { margin-left: auto; color: #fff; background: #244b36; }
.onboard-next:hover { background: #17392a; }
.onboard-next:disabled { color: #697466; background: #e0e6db; opacity: 1; }
.onboard-privacy { color: #5d6a60; font-size: 12.5px; line-height: 1.45; margin: 16px 0 0; }
.onboard-options-summary { display: grid; gap: 0; margin: 18px 0; padding: 0; }
.onboard-options-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid #e4e9df; }
.onboard-options-summary dt { margin: 0; color: #5a6b5a; font-size: 14px; }
.onboard-options-summary dd { margin: 0; font-size: 15px; text-align: right; font-weight: 600; }
.onboard-inline-link { display: inline-block; color: #335a36; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.onboard-finish { min-width: 0; }
@media (max-width: 740px) {
  .onboard-shell { grid-template-columns: minmax(185px, .61fr) minmax(0, 1.39fr); }
  .onboard-main { padding: 23px; }
  .onboard-aside-content { padding: 20px; }
}
@media (max-width: 590px) {
  dialog.onboarding-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 22px);
    border-radius: 15px;
  }
  .onboard-shell { display: flex; flex-direction: column; min-height: 0; }
  .onboard-aside { min-height: 68px; }
  .onboard-photo { object-position: 50% 49%; }
  .onboard-aside::after { background: linear-gradient(90deg, rgb(18 45 34 / 92%), rgb(18 45 33 / 61%) 57%, rgb(18 45 33 / 16%)); }
  .onboard-aside-content { flex-direction: row; align-items: center; padding: 16px 23px; }
  .onboard-wordmark { font-size: 23px; }
  .onboard-aside-title, .onboard-aside-foot { display: none; }
  .onboard-main { padding: 18px 20px 21px; }
  .onboard-title { font-size: clamp(29px, 8.2vw, 37px); }
  .onboard-progress { margin: 10px 0 20px; }
  .onboard-hint { margin: 9px 0 15px; font-size: 14px; }
  .onboard-choices { gap: 8px; margin: 14px 0 3px; }
  .onboard-pill { min-height: 43px; gap: 7px; padding: 9px 13px 9px 10px; font-size: 14px; }
  .onboard-actions { padding-top: 21px; }
}
@media (max-height: 540px) and (min-width: 591px) {
  dialog.onboarding-dialog { max-height: calc(100dvh - 18px); }
  .onboard-shell { min-height: 0; }
  .onboard-main { padding: 16px 26px; }
  .onboard-progress { margin: 8px 0 16px; }
  .onboard-actions { padding-top: 16px; }
}
@media (forced-colors: active) {
  .onboard-pill:has(input:checked), .onboard-pill:has(input:checked) .onboard-indicator { border: 2px solid Highlight; }
  .onboard-pill:has(input:checked) .onboard-label { color: Highlight; }
  .onboard-aside::after { background: Canvas; }
}
@media (prefers-reduced-motion: reduce) {
  .onboard-pill { transition: none; }
}

.onboard-number-field {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: min(100%, 325px);
  min-height: 57px;
  padding: 0 17px;
  margin: 5px 0;
  border: 1px solid #9dad96;
  border-radius: 10px;
  background: #fff;
}
.onboard-number-field:focus-within {
  border-color: #3e6444;
  outline: 3px solid #ccdbbc;
  outline-offset: 2px;
}
.onboard-number-field:has(.onboard-number[aria-invalid="true"]) {
  border-color: #934c35;
}
.onboard-number-field:has(.onboard-number:disabled) {
  background: #f1f3ee;
  border-color: #d6ddd1;
}
.onboard-number-unit {
  flex: none;
  color: #48604c;
  font-size: 16px;
  font-weight: 580;
  line-height: 1;
}
.onboard-number-field .onboard-number {
  width: 100%;
  min-width: 0;
  height: 53px;
  padding: 8px 0;
  border: none;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: #193d2b;
  font: 580 clamp(19px, 2vw, 23px)/1.1 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  appearance: textfield;
}
.onboard-number::-webkit-inner-spin-button,
.onboard-number::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.onboard-number::placeholder { opacity: 1; color: #788277; }
.onboard-numeric-options {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
}
.onboard-numeric-options .onboard-pill {
  min-height: 42px;
  padding: 8px 14px 8px 11px;
  font-size: 14px;
}
