.onboard {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.ob-header {
  border-bottom: 1px solid #ebebeb;
  background: var(--white);
}

.ob-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 80px;
}

.ob-header .brand {
  font-size: 28px;
}

.ob-header .brand__mark {
  width: 29px;
  height: 29px;
  border-radius: 7px;
}

.ob-header__context {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.ob-exit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}

.ob-exit:hover {
  color: var(--ink);
}

.ob-exit svg {
  width: 15px;
  height: 15px;
}

.ob-main {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 3.5vw, 80px);
  flex: 1 0 auto;
  padding-block: 58px 70px;
}

.ob-progress {
  position: sticky;
  top: 40px;
  padding-top: 5px;
}

.ob-sidebar-title {
  color: #858585;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
}

.ob-progress ol {
  display: grid;
  gap: 0;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.ob-progress li {
  position: relative;
  padding-bottom: 24px;
}

.ob-progress li:not(:last-child)::after {
  position: absolute;
  top: 27px;
  bottom: -1px;
  left: 11px;
  width: 1px;
  background: #e4e4e4;
  content: "";
}

.ob-step-button {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
}

.ob-step-button:disabled {
  cursor: default;
}

.ob-progress__num {
  position: relative;
  z-index: 1;
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #fff;
  color: #777;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.ob-step-copy {
  min-width: 0;
  padding-top: 2px;
}

.ob-step-copy strong {
  display: block;
  color: #707070;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}

.ob-step-copy small {
  display: block;
  margin-top: 4px;
  color: #878787;
  font-size: 11px;
  line-height: 1.6;
}

.ob-progress li[aria-current="step"] .ob-progress__num {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--lime-tint-12);
}

.ob-progress li[aria-current="step"] .ob-step-copy strong,
.ob-progress li.is-complete .ob-step-copy strong {
  color: var(--ink);
  font-weight: 650;
}

.ob-progress li.is-complete .ob-progress__num {
  border-color: var(--lime);
  background: var(--lime-tint-24);
  color: var(--ink);
}

.ob-progress li.is-complete::after {
  background: color-mix(in srgb, var(--lime) 68%, white);
}

.ob-sidebar-note {
  max-width: 170px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid #e9e9e9;
  color: #7a7a7a;
  font-size: 11px;
  line-height: 1.8;
}

.ob-layout,
.ob-form-side {
  min-width: 0;
}

.ob-form-side {
  container: onboarding-form / inline-size;
}

.ob-layout {
  max-width: 640px;
}

.ob-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.ob-kicker > span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.ob-kicker__index {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
}

.ob-form-side h1,
.ob-form-side h2 {
  margin-top: 16px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
}

.ob-form-side h1:focus,
.ob-form-side h2:focus,
.ob-main:focus {
  outline: none;
}

.ob-subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.ob-fields {
  display: grid;
  gap: 21px;
  margin-top: 28px;
}

.ob-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@container onboarding-form (min-width: 460px) {
  .ob-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ob-field {
  min-width: 0;
}

.ob-field label {
  display: block;
  margin-bottom: 7px;
  color: #343434;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}

.ob-field label > span {
  color: #7b7b7b;
  font-size: 11px;
  font-weight: 400;
}

.ob-field label .ob-field__en {
  display: block;
  margin-top: 3px;
  color: #777;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .01em;
}

.ob-field input,
.ob-field select {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 2px #00000006, 0 1px 3px #00000004;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}

.ob-field input:hover,
.ob-field select:hover {
  border-color: #b8b8b8;
}

.ob-field input:focus,
.ob-field select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--lime) 62%, black);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 23%, transparent);
}

.ob-field input::placeholder,
.ob-field select:invalid {
  color: #8a8a8a;
  opacity: 1;
}

.ob-field select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 17px;
}

.ob-field-hint {
  margin-top: 7px;
  color: #777;
  font-size: 11px;
  line-height: 1.7;
}

.ob-field input[aria-invalid="true"],
.ob-field select[aria-invalid="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.ob-error {
  margin-top: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.6;
}

.ob-divider {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid #ebebeb;
}

.ob-divider h3 {
  color: #333;
  font-size: 13px;
  font-weight: 650;
}

.ob-divider p {
  margin-top: 5px;
  color: #777;
  font-size: 11px;
  line-height: 1.7;
}

.ob-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #ebebeb;
}

.ob-actions .btn {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 13px;
}

.ob-actions .btn:hover {
  transform: none;
}

.ob-actions .btn--outline {
  margin-right: auto;
  border-color: #d4d4d4;
  background: #fff;
  color: #5a5a5a;
  box-shadow: 0 1px 2px #00000006;
}

.ob-actions .btn--outline:hover {
  background: #fafafa;
  border-color: #a9a9a9;
  color: var(--ink);
}

.ob-next {
  min-width: 119px;
}

.ob-submit-status:not(:empty) {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #dfdfdf;
  border-radius: 5px;
  background: #fafafa;
  color: var(--text);
  font-size: 12px;
  line-height: 1.8;
}

.ob-privacy {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.ob-privacy summary {
  width: max-content;
  cursor: pointer;
  color: var(--text);
}

.ob-privacy details p {
  margin-top: 9px;
}

.ob-consent {
  margin-top: 16px;
}

.ob-consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}

.ob-consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--lime);
}

.ob-success {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--lime) 55%, var(--line));
  border-radius: 6px;
  background: var(--lime-tint-6);
}

.ob-success h3 {
  font-size: 18px;
  font-weight: 650;
}

.ob-success p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.ob-success .btn {
  margin-top: 18px;
  font-size: 12px;
}

button:disabled {
  cursor: default;
}

.ob-actions button:disabled {
  opacity: .65;
}

.ob-footnote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 21px;
  color: #777;
  font-size: 11px;
  line-height: 1.75;
}

.ob-footnote svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
}

.ob-review-section {
  margin-top: 26px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
}

.ob-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
  border-radius: 6px 6px 0 0;
}

.ob-review-head h3 {
  font-size: 13px;
  font-weight: 600;
}

.ob-edit {
  min-height: 30px;
  padding: 3px 5px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #575757;
  font-size: 12px;
  font-weight: 500;
}

.ob-edit:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ob-summary {
  margin: 0;
  padding: 2px 16px;
}

.ob-summary div {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(0, 1fr);
  gap: 20px;
  padding-block: 12px;
  font-size: 12px;
  line-height: 1.7;
}

.ob-summary div + div {
  border-top: 1px solid #efefef;
}

.ob-summary dt {
  color: #747474;
}

.ob-summary dd {
  margin: 0;
  color: #333;
  overflow-wrap: anywhere;
}

.ob-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 64px;
  border-top: 1px solid #e9e9e9;
  color: #808080;
  font-size: 11px;
}

@media (max-width: 1799px) {
  .ob-main {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 1359px) {
  .ob-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
    padding-block: 30px 50px;
  }

  .ob-progress {
    position: static;
    padding: 0 0 21px;
    border-bottom: 1px solid #e9e9e9;
  }

  .ob-sidebar-title,
  .ob-sidebar-note,
  .ob-step-copy small {
    display: none;
  }

  .ob-progress ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
  }

  .ob-progress li {
    padding-bottom: 0;
  }

  .ob-progress li:not(:last-child)::after {
    display: none;
  }

  .ob-step-button {
    align-items: center;
    gap: 8px;
  }

  .ob-step-copy {
    padding-top: 0;
  }

  .ob-step-copy strong {
    font-size: 11px;
  }

  .ob-layout {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .ob-header__inner {
    min-height: 64px;
    gap: 12px;
  }

  .ob-header__context {
    padding-left: 12px;
    font-size: 11px;
  }

  .ob-exit {
    font-size: 12px;
  }

  .ob-main {
    gap: 24px;
    padding-block: 26px 40px;
  }

  .ob-progress {
    padding-bottom: 20px;
  }

  .ob-progress ol {
    gap: 8px;
  }

  .ob-step-button {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .ob-step-copy strong {
    font-size: 11px;
  }

  .ob-progress__num {
    width: 23px;
    height: 23px;
    font-size: 10px;
  }

  .ob-form-side h1,
  .ob-form-side h2 {
    margin-top: 14px;
    font-size: 25px;
  }

  .ob-fields {
    margin-top: 26px;
  }

  .ob-field-row {
    gap: 21px;
  }

  .ob-field input,
  .ob-field select {
    min-height: 44px;
    font-size: 16px;
  }

  .ob-summary div {
    grid-template-columns: minmax(85px, .75fr) minmax(0, 1fr);
    gap: 14px;
  }

  .ob-actions .btn {
    min-height: 44px;
  }
}

@media (max-width: 369px) {
  .ob-header__context {
    display: none;
  }

  .ob-step-copy strong {
    font-size: 10px;
  }
}
