
/* ONBOARDING-r23 — reference app screens for quick/profile role forms. */
#onb2-overlay:has(.onb2-step.active .onb2-modal--ref){
  background:#f7f7f8;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
#onb2-overlay:has(.onb2-step.active .onb2-modal--ref) .onb2-step{
  align-items:stretch;
}
.onb2-modal--ref{
  position:relative;
  width:min(430px,100%);
  height:100dvh;
  min-height:100dvh;
  margin:0 auto;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 6%, rgba(255,90,0,.06), transparent 26%),
    linear-gradient(180deg,#fff 0%,#fffaf7 100%);
  color:#24262b;
  border-left:1px solid rgba(17,24,39,.06);
  border-right:1px solid rgba(17,24,39,.06);
  box-shadow:0 22px 70px rgba(15,23,42,.12);
}
.onb2-modal--ref::before{
  content:'';
  position:absolute;
  left:-18%;
  right:-14%;
  bottom:-118px;
  height:255px;
  z-index:0;
  border-radius:58% 58% 0 0 / 38% 38% 0 0;
  background:linear-gradient(135deg,#ff8c2a 0%,#ff5a00 54%,#ff6a00 100%);
  box-shadow:0 -14px 0 rgba(255,90,0,.25);
}
.onb2-modal--ref::after{
  content:'';
  position:absolute;
  left:-20%;
  right:-13%;
  top:132px;
  height:130px;
  z-index:0;
  pointer-events:none;
  border-top:1px solid rgba(255,90,0,.18);
  border-bottom:2px solid rgba(255,90,0,.55);
  border-radius:0 0 58% 58%;
  transform:rotate(-3deg);
}
.onb2-ref-status{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px 0;
  color:#1f2227;
  font-size:13px;
  line-height:18px;
  font-weight:900;
  letter-spacing:-.02em;
}
.onb2-ref-topbar{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:34px 1fr 34px;
  align-items:center;
  gap:6px;
  padding:20px 20px 4px;
}
.onb2-ref-back{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:#ff5a00;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.onb2-ref-logo{
  grid-column:2;
  justify-self:center;
  display:block;
  width:min(100%, 210px);
  height:auto;
  object-fit:contain;
}
.onb2-ref-body{
  position:relative;
  z-index:2;
  padding:20px 34px 124px;
  text-align:center;
}
.onb2-ref-body h2,
.onb2-ref-profile-head h2{
  margin:0;
  color:#24262b;
  font-size:20px;
  line-height:1.15;
  font-weight:950;
  letter-spacing:-.035em;
}
.onb2-ref-body p,
.onb2-ref-profile-head p{
  margin:8px auto 0;
  max-width:310px;
  color:#5c5f66;
  font-size:12px;
  line-height:1.35;
  font-weight:600;
  letter-spacing:-.015em;
}
.onb2-ref-avatar{
  position:relative;
  width:74px;
  height:74px;
  margin:20px auto 14px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 10px 24px rgba(20,24,32,.08);
  display:flex;
  align-items:center;
  justify-content:center;
}
.onb2-ref-avatar::before{
  content:'';
  position:absolute;
  inset:8px auto auto 9px;
  width:31px;
  height:31px;
  border-radius:999px;
  background:linear-gradient(135deg,#ff8c2a,#ff5a00);
}
.onb2-ref-avatar span{
  position:relative;
  z-index:2;
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.onb2-ref-avatar .onb2-role-svg{
  width:48px;
  height:48px;
}
.onb2-ref-avatar i{
  position:absolute;
  right:4px;
  bottom:4px;
  width:22px;
  height:22px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(36,38,43,.12);
}
.onb2-ref-avatar i::before{
  content:'⌕';
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#333;
  font-size:12px;
  font-style:normal;
  font-weight:900;
}
.onb2-ref-form,
.onb2-ref-profile-form{
  display:grid;
  gap:10px;
  text-align:left;
}
.onb2-ref-form label,
.onb2-ref-profile-form label{
  position:relative;
  display:grid;
  gap:4px;
}
.onb2-ref-form label span,
.onb2-ref-profile-form label span{
  padding-left:2px;
  color:#7a7d84;
  font-size:10px;
  line-height:1.1;
  font-weight:800;
}
.onb2-ref-profile-form label span b{
  color:#ff5a00;
}
.onb2-ref-input{
  width:100%;
  min-height:48px;
  box-sizing:border-box;
  border:1px solid rgba(29,33,40,.10);
  border-radius:9px;
  background:rgba(255,255,255,.88);
  color:#24262b;
  outline:0;
  padding:12px 40px 12px 14px;
  box-shadow:0 6px 16px rgba(20,24,32,.035);
  font-size:13px;
  line-height:1.2;
  font-weight:800;
}
select.onb2-ref-input{
  appearance:none;
  -webkit-appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,#7a7d84 50%),linear-gradient(135deg,#7a7d84 50%,transparent 50%);
  background-position:calc(100% - 17px) 21px,calc(100% - 12px) 21px;
  background-size:5px 5px,5px 5px;
  background-repeat:no-repeat;
}
textarea.onb2-ref-input{
  min-height:86px;
  resize:none;
  line-height:1.35;
  padding-right:14px;
}
.onb2-ref-profile-form label i{
  position:absolute;
  right:13px;
  top:31px;
  color:#2f333a;
  font-style:normal;
  font-size:13px;
}
.onb2-ref-profile-form label small{
  position:absolute;
  right:11px;
  bottom:8px;
  color:#8b8e96;
  font-size:9px;
  font-weight:700;
}
.onb2-ref-profile-head{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1fr 76px;
  gap:12px;
  align-items:start;
  padding:18px 28px 12px;
  text-align:left;
}
.onb2-ref-profile-head .onb2-ref-avatar{
  margin:0;
  width:68px;
  height:68px;
}
.onb2-ref-profile-scroll{
  position:relative;
  z-index:2;
  height:calc(100dvh - 198px);
  overflow:auto;
  padding:0 28px 112px;
  scrollbar-width:none;
}
.onb2-ref-profile-scroll::-webkit-scrollbar{display:none;}
.onb2-ref-services-title{
  margin-top:2px;
  color:#7a7d84;
  font-size:11px;
  font-weight:900;
}
.onb2-ref-checks{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.onb2-ref-check{
  display:inline-flex !important;
  grid-template-columns:none !important;
  align-items:center;
  gap:6px !important;
  padding:5px 8px;
  border-radius:6px;
  background:#fff8f2;
  border:1px solid rgba(255,90,0,.25);
}
.onb2-ref-check input{
  accent-color:#ff5a00;
}
.onb2-ref-check span{
  padding:0 !important;
  color:#6b4a35 !important;
  font-size:10px !important;
}
.onb2-ref-add-service{
  min-height:38px;
  border:1px dashed rgba(255,90,0,.75);
  border-radius:8px;
  background:#fffaf7;
  color:#ff5a00;
  font-size:12px;
  font-weight:950;
}
.onb2-ref-note{
  padding:11px 12px;
  border-radius:10px;
  background:#fff1e8;
  color:#7b4b2e;
  font-size:11px;
  line-height:1.35;
  font-weight:700;
}
.onb2-ref-footer{
  position:absolute;
  left:28px;
  right:28px;
  bottom:23px;
  z-index:4;
}
.onb2-ref-primary{
  width:100%;
  min-height:58px;
  border:0;
  border-radius:10px;
  background:linear-gradient(90deg,#ff5a00 0%,#ff6a00 100%);
  color:#fff;
  box-shadow:0 12px 26px rgba(255,90,0,.22);
  font-size:15px;
  line-height:1;
  font-weight:950;
  cursor:pointer;
}
.onb2-ref-primary:active{
  transform:translateY(1px) scale(.996);
}
@media (max-width:420px){
  .onb2-ref-status{padding-left:20px;padding-right:20px;}
  .onb2-ref-topbar{padding-left:16px;padding-right:16px;}
  .onb2-ref-logo{width:min(100%, 190px);}
  .onb2-ref-body{padding-left:28px;padding-right:28px;}
  .onb2-ref-profile-head{padding-left:22px;padding-right:22px;}
  .onb2-ref-profile-scroll{padding-left:22px;padding-right:22px;}
  .onb2-ref-footer{left:22px;right:22px;}
}
@media (max-height:760px){
  .onb2-ref-body{padding-top:12px;}
  .onb2-ref-avatar{margin-top:14px;margin-bottom:10px;}
  .onb2-ref-profile-scroll{height:calc(100dvh - 176px);}
}

/* ONBOARDING-r26 — third quick screen tablet/wide optimization. Scope: quick ref screen only. */
@media (min-width:768px){
  #onb2-overlay:has(#onb2-step-quick.active){
    background:
      radial-gradient(circle at 50% 14%, rgba(255,255,255,.92), rgba(255,255,255,0) 44%),
      linear-gradient(180deg,#f4f4f5 0%,#ececef 100%);
  }
  #onb2-step-quick.active{
    align-items:center !important;
    justify-content:center !important;
    padding:28px;
    box-sizing:border-box;
  }
  #onb2-step-quick .onb2-modal--quick-ref{
    width:min(920px, calc(100vw - 56px));
    height:min(760px, calc(100dvh - 56px));
    min-height:620px;
    border-radius:34px;
    border:1px solid rgba(17,24,39,.08);
    overflow:hidden;
    box-shadow:0 28px 90px rgba(15,23,42,.16);
  }
  #onb2-step-quick .onb2-modal--quick-ref::before{
    left:-16%;
    right:-16%;
    bottom:-132px;
    height:260px;
    border-radius:60% 60% 0 0 / 46% 46% 0 0;
  }
  #onb2-step-quick .onb2-modal--quick-ref::after{
    top:144px;
    height:150px;
  }
  #onb2-step-quick .onb2-ref-status{
    padding:22px 36px 0;
    font-size:14px;
  }
  #onb2-step-quick .onb2-ref-topbar{
    grid-template-columns:44px 1fr 44px;
    padding:20px 36px 8px;
  }
  #onb2-step-quick .onb2-ref-back{
    width:44px;
    height:44px;
    font-size:24px;
    border-radius:14px;
  }
  #onb2-step-quick .onb2-ref-logo{
    width:min(100%, 286px);
  }
  #onb2-step-quick .onb2-ref-body{
    display:grid;
    grid-template-columns:minmax(260px, 330px) minmax(360px, 1fr);
    grid-template-areas:
      "title form"
      "avatar form";
    align-items:center;
    column-gap:46px;
    row-gap:16px;
    padding:34px 58px 120px;
    text-align:left;
  }
  #onb2-step-quick .onb2-ref-body h2{
    grid-area:title;
    align-self:end;
    font-size:31px;
    line-height:1.08;
    letter-spacing:-.05em;
  }
  #onb2-step-quick .onb2-ref-body p{
    grid-area:title;
    align-self:end;
    margin:44px 0 0;
    max-width:310px;
    font-size:15px;
    line-height:1.45;
  }
  #onb2-step-quick .onb2-ref-avatar{
    grid-area:avatar;
    align-self:start;
    justify-self:start;
    width:122px;
    height:122px;
    margin:20px 0 0;
    box-shadow:0 18px 42px rgba(20,24,32,.10);
  }
  #onb2-step-quick .onb2-ref-avatar::before{
    inset:13px auto auto 15px;
    width:50px;
    height:50px;
  }
  #onb2-step-quick .onb2-ref-avatar span{
    width:92px;
    height:92px;
  }
  #onb2-step-quick .onb2-ref-avatar .onb2-role-svg{
    width:78px;
    height:78px;
  }
  #onb2-step-quick .onb2-ref-avatar i{
    right:8px;
    bottom:8px;
    width:30px;
    height:30px;
  }
  #onb2-step-quick .onb2-ref-form--quick{
    grid-area:form;
    align-self:center;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    padding:22px;
    border-radius:24px;
    background:rgba(255,255,255,.62);
    border:1px solid rgba(17,24,39,.06);
    box-shadow:0 18px 42px rgba(15,23,42,.075);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }
  #onb2-step-quick .onb2-ref-form--quick label:nth-child(1),
  #onb2-step-quick .onb2-ref-form--quick label:nth-child(2){
    grid-column:auto;
  }
  #onb2-step-quick .onb2-ref-form--quick label:nth-last-child(1):nth-child(odd){
    grid-column:1 / -1;
  }
  #onb2-step-quick .onb2-ref-form label span{
    font-size:11px;
  }
  #onb2-step-quick .onb2-ref-input{
    min-height:56px;
    border-radius:13px;
    padding:14px 42px 14px 16px;
    font-size:15px;
  }
  #onb2-step-quick select.onb2-ref-input{
    background-position:calc(100% - 19px) 25px,calc(100% - 13px) 25px;
  }
  #onb2-step-quick .onb2-ref-footer{
    left:58px;
    right:58px;
    bottom:34px;
  }
  #onb2-step-quick .onb2-ref-primary{
    max-width:420px;
    min-height:62px;
    margin-left:auto;
    display:block;
    border-radius:14px;
    font-size:17px;
  }
}

@media (min-width:1024px){
  #onb2-step-quick .onb2-modal--quick-ref{
    width:min(1040px, calc(100vw - 80px));
    height:min(780px, calc(100dvh - 80px));
  }
  #onb2-step-quick .onb2-ref-body{
    grid-template-columns:minmax(300px, 390px) minmax(430px, 1fr);
    column-gap:62px;
    padding-left:72px;
    padding-right:72px;
  }
  #onb2-step-quick .onb2-ref-body h2{
    font-size:36px;
  }
  #onb2-step-quick .onb2-ref-body p{
    max-width:360px;
    font-size:16px;
  }
  #onb2-step-quick .onb2-ref-form--quick{
    gap:16px;
    padding:26px;
  }
  #onb2-step-quick .onb2-ref-footer{
    left:72px;
    right:72px;
  }
}

@media (min-width:768px) and (max-height:720px){
  #onb2-step-quick.active{
    padding:16px;
  }
  #onb2-step-quick .onb2-modal--quick-ref{
    height:calc(100dvh - 32px);
    min-height:560px;
  }
  #onb2-step-quick .onb2-ref-body{
    padding-top:18px;
    padding-bottom:104px;
  }
  #onb2-step-quick .onb2-ref-avatar{
    width:96px;
    height:96px;
  }
  #onb2-step-quick .onb2-ref-avatar .onb2-role-svg{
    width:64px;
    height:64px;
  }
}


/* ONBOARDING-r27 — profile client/master/STO forms tablet/wide optimization. Scope: profile ref screen only. */
@media (min-width:768px){
  #onb2-overlay:has(#onb2-step-profile.active){
    background:
      radial-gradient(circle at 50% 12%, rgba(255,255,255,.94), rgba(255,255,255,0) 46%),
      linear-gradient(180deg,#f4f4f5 0%,#ececef 100%);
  }
  #onb2-step-profile.active{
    align-items:center !important;
    justify-content:center !important;
    padding:28px;
    box-sizing:border-box;
  }
  #onb2-step-profile .onb2-modal--profile-ref{
    width:min(960px, calc(100vw - 56px));
    height:min(780px, calc(100dvh - 56px));
    min-height:640px;
    display:grid;
    grid-template-columns:minmax(250px, 330px) minmax(430px, 1fr);
    grid-template-rows:auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "status status"
      "topbar topbar"
      "head form"
      "footer footer";
    column-gap:34px;
    border-radius:34px;
    border:1px solid rgba(17,24,39,.08);
    overflow:hidden;
    box-shadow:0 28px 90px rgba(15,23,42,.16);
  }
  #onb2-step-profile .onb2-modal--profile-ref::before{
    left:-16%;
    right:-16%;
    bottom:-144px;
    height:270px;
    border-radius:60% 60% 0 0 / 46% 46% 0 0;
  }
  #onb2-step-profile .onb2-modal--profile-ref::after{
    top:150px;
    height:150px;
  }
  #onb2-step-profile .onb2-ref-status{
    grid-area:status;
    padding:22px 36px 0;
    font-size:14px;
  }
  #onb2-step-profile .onb2-ref-topbar{
    grid-area:topbar;
    grid-template-columns:44px 1fr 44px;
    padding:20px 36px 6px;
  }
  #onb2-step-profile .onb2-ref-back{
    width:44px;
    height:44px;
    font-size:24px;
    border-radius:14px;
  }
  #onb2-step-profile .onb2-ref-logo{
    width:min(100%, 286px);
  }
  #onb2-step-profile .onb2-ref-profile-head{
    grid-area:head;
    display:flex;
    flex-direction:column-reverse;
    align-items:flex-start;
    justify-content:center;
    gap:24px;
    padding:28px 0 104px 54px;
    text-align:left;
  }
  #onb2-step-profile .onb2-ref-profile-head h2{
    font-size:34px;
    line-height:1.08;
    letter-spacing:-.05em;
  }
  #onb2-step-profile .onb2-ref-profile-head p{
    max-width:290px;
    margin:12px 0 0;
    font-size:15px;
    line-height:1.45;
  }
  #onb2-step-profile .onb2-ref-profile-head .onb2-ref-avatar{
    width:118px;
    height:118px;
    margin:0;
    box-shadow:0 18px 42px rgba(20,24,32,.10);
  }
  #onb2-step-profile .onb2-ref-profile-head .onb2-ref-avatar::before{
    inset:13px auto auto 15px;
    width:50px;
    height:50px;
  }
  #onb2-step-profile .onb2-ref-profile-head .onb2-ref-avatar span{
    width:90px;
    height:90px;
  }
  #onb2-step-profile .onb2-ref-profile-head .onb2-role-svg{
    width:76px;
    height:76px;
  }
  #onb2-step-profile .onb2-ref-profile-head .onb2-ref-avatar i{
    right:8px;
    bottom:8px;
    width:30px;
    height:30px;
  }
  #onb2-step-profile .onb2-ref-profile-scroll{
    grid-area:form;
    height:auto;
    min-height:0;
    overflow:auto;
    padding:26px 54px 110px 0;
    scrollbar-width:thin;
  }
  #onb2-step-profile .onb2-ref-profile-form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    padding:24px;
    border-radius:24px;
    background:rgba(255,255,255,.66);
    border:1px solid rgba(17,24,39,.06);
    box-shadow:0 18px 42px rgba(15,23,42,.075);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }
  #onb2-step-profile .onb2-ref-profile-form label{
    min-width:0;
  }
  #onb2-step-profile .onb2-ref-profile-form label span{
    font-size:11px;
  }
  #onb2-step-profile .onb2-ref-input{
    min-height:56px;
    border-radius:13px;
    padding:14px 42px 14px 16px;
    font-size:15px;
  }
  #onb2-step-profile select.onb2-ref-input{
    background-position:calc(100% - 19px) 25px,calc(100% - 13px) 25px;
  }
  #onb2-step-profile textarea.onb2-ref-input{
    min-height:118px;
    padding-right:16px;
  }
  #onb2-step-profile .onb2-ref-profile-form label i{
    top:34px;
    right:15px;
    font-size:14px;
  }
  #onb2-step-profile .onb2-ref-profile-form label small{
    right:14px;
    bottom:10px;
    font-size:10px;
  }
  #onb2-step-profile .onb2-ref-wide,
  #onb2-step-profile .onb2-ref-note,
  #onb2-step-profile .onb2-ref-services-title,
  #onb2-step-profile .onb2-ref-checks,
  #onb2-step-profile .onb2-ref-add-service{
    grid-column:1 / -1;
  }
  #onb2-step-profile .onb2-ref-services-title{
    margin-top:4px;
    font-size:12px;
  }
  #onb2-step-profile .onb2-ref-checks{
    gap:10px;
  }
  #onb2-step-profile .onb2-ref-check{
    min-height:34px;
    padding:7px 10px;
    border-radius:9px;
  }
  #onb2-step-profile .onb2-ref-check span{
    font-size:11px !important;
  }
  #onb2-step-profile .onb2-ref-add-service{
    min-height:46px;
    border-radius:12px;
    font-size:13px;
  }
  #onb2-step-profile .onb2-ref-note{
    padding:14px 16px;
    border-radius:14px;
    font-size:12px;
  }
  #onb2-step-profile .onb2-ref-footer{
    grid-area:footer;
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
    z-index:4;
    padding:0 54px 34px;
    display:flex;
    justify-content:flex-end;
  }
  #onb2-step-profile .onb2-ref-primary{
    width:min(100%, 420px);
    min-height:62px;
    border-radius:14px;
    font-size:17px;
  }
}

@media (min-width:1024px){
  #onb2-step-profile .onb2-modal--profile-ref{
    width:min(1120px, calc(100vw - 80px));
    height:min(800px, calc(100dvh - 80px));
    grid-template-columns:minmax(300px, 390px) minmax(500px, 1fr);
    column-gap:50px;
  }
  #onb2-step-profile .onb2-ref-profile-head{
    padding-left:72px;
  }
  #onb2-step-profile .onb2-ref-profile-head h2{
    font-size:38px;
  }
  #onb2-step-profile .onb2-ref-profile-head p{
    max-width:340px;
    font-size:16px;
  }
  #onb2-step-profile .onb2-ref-profile-scroll{
    padding-right:72px;
  }
  #onb2-step-profile .onb2-ref-profile-form{
    gap:16px;
    padding:28px;
  }
  #onb2-step-profile .onb2-ref-footer{
    padding-left:72px;
    padding-right:72px;
  }
}

@media (min-width:768px) and (max-height:720px){
  #onb2-step-profile.active{
    padding:16px;
  }
  #onb2-step-profile .onb2-modal--profile-ref{
    height:calc(100dvh - 32px);
    min-height:560px;
  }
  #onb2-step-profile .onb2-ref-profile-head{
    padding-top:14px;
    padding-bottom:92px;
    gap:16px;
  }
  #onb2-step-profile .onb2-ref-profile-head .onb2-ref-avatar{
    width:92px;
    height:92px;
  }
  #onb2-step-profile .onb2-ref-profile-head .onb2-role-svg{
    width:62px;
    height:62px;
  }
  #onb2-step-profile .onb2-ref-profile-scroll{
    padding-top:14px;
    padding-bottom:90px;
  }
  #onb2-step-profile .onb2-ref-profile-form{
    gap:10px;
    padding:18px;
  }
  #onb2-step-profile .onb2-ref-input{
    min-height:50px;
  }
  #onb2-step-profile textarea.onb2-ref-input{
    min-height:88px;
  }
  #onb2-step-profile .onb2-ref-footer{
    padding-bottom:20px;
  }
}


/* ONBOARDING-r29 — validation states for reference profile forms. */
.onb2-ref-input.is-invalid{
  border-color:#ef4444!important;
  box-shadow:0 0 0 3px rgba(239,68,68,.12)!important;
  background:#fffafa!important;
}
.onb2-ref-profile-form label.is-invalid > span,
.onb2-ref-form label.is-invalid > span{
  color:#b91c1c!important;
}
.onb2-ref-error{
  display:block;
  margin-top:6px;
  color:#b91c1c;
  font-size:12px;
  line-height:1.25;
  font-style:normal;
  font-weight:750;
}


/* ONBOARDING-r32 — tablet/wide cleanup for actual quick/profile chain after address removal. */
@media (min-width:768px) and (orientation:portrait){
  #onb2-step-quick.active,
  #onb2-step-profile.active{
    padding:24px;
  }
  #onb2-step-quick .onb2-modal--quick-ref,
  #onb2-step-profile .onb2-modal--profile-ref{
    width:min(860px, calc(100vw - 48px));
    min-height:min(1040px, calc(100dvh - 48px));
  }
  #onb2-step-quick .onb2-modal--quick-ref{
    height:auto;
    display:flex;
    flex-direction:column;
  }
  #onb2-step-quick .onb2-ref-body{
    flex:1 1 auto;
    display:grid;
    grid-template-columns:1fr;
    grid-template-areas:"title" "avatar" "form";
    justify-items:center;
    text-align:center;
    padding:34px 58px 126px;
  }
  #onb2-step-quick .onb2-ref-body h2,
  #onb2-step-quick .onb2-ref-body p{
    text-align:center;
  }
  #onb2-step-quick .onb2-ref-body p{
    margin:12px auto 0;
    max-width:520px;
  }
  #onb2-step-quick .onb2-ref-avatar{
    justify-self:center;
    margin:22px auto 26px;
  }
  #onb2-step-quick .onb2-ref-form--quick{
    width:min(100%, 640px);
    grid-template-columns:1fr 1fr;
  }
  #onb2-step-quick .onb2-ref-footer{
    left:50%;
    right:auto;
    width:min(520px, calc(100% - 96px));
    transform:translateX(-50%);
  }
  #onb2-step-profile .onb2-modal--profile-ref{
    height:auto;
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto minmax(0,1fr) auto;
    grid-template-areas:"status" "topbar" "head" "form" "footer";
  }
  #onb2-step-profile .onb2-ref-profile-head{
    padding:22px 58px 12px;
    align-items:center;
    text-align:center;
    flex-direction:column-reverse;
  }
  #onb2-step-profile .onb2-ref-profile-head p{
    max-width:560px;
    margin-left:auto;
    margin-right:auto;
  }
  #onb2-step-profile .onb2-ref-profile-scroll{
    padding:18px 58px 112px;
  }
  #onb2-step-profile .onb2-ref-profile-form{
    width:min(100%, 680px);
    margin:0 auto;
  }
  #onb2-step-profile .onb2-ref-footer{
    left:50%;
    right:auto;
    width:min(520px, calc(100% - 96px));
    transform:translateX(-50%);
  }
}
@media (min-width:1200px){
  #onb2-step-quick .onb2-modal--quick-ref,
  #onb2-step-profile .onb2-modal--profile-ref{
    width:min(1180px, calc(100vw - 80px));
  }
  #onb2-step-quick .onb2-ref-body{
    grid-template-columns:minmax(360px, 440px) minmax(520px, 1fr);
    column-gap:74px;
  }
  #onb2-step-profile .onb2-modal--profile-ref{
    grid-template-columns:minmax(320px, 410px) minmax(560px, 1fr);
    column-gap:48px;
  }
}
@media (min-width:768px) and (orientation:landscape) and (max-height:680px){
  #onb2-step-quick.active,
  #onb2-step-profile.active{
    padding:10px;
  }
  #onb2-step-quick .onb2-modal--quick-ref,
  #onb2-step-profile .onb2-modal--profile-ref{
    height:calc(100dvh - 20px);
    min-height:0;
    border-radius:24px;
  }
  #onb2-step-quick .onb2-ref-status,
  #onb2-step-profile .onb2-ref-status{padding-top:12px;}
  #onb2-step-quick .onb2-ref-topbar,
  #onb2-step-profile .onb2-ref-topbar{padding-top:12px;padding-bottom:4px;}
  #onb2-step-quick .onb2-ref-body{
    padding-top:12px;
    padding-bottom:88px;
    column-gap:32px;
  }
  #onb2-step-profile .onb2-ref-profile-head{
    padding-top:14px;
    padding-bottom:86px;
  }
  #onb2-step-profile .onb2-ref-profile-scroll{
    padding-top:12px;
    padding-bottom:86px;
  }
  #onb2-step-quick .onb2-ref-form--quick,
  #onb2-step-profile .onb2-ref-profile-form{
    padding:16px;
    gap:10px;
  }
  #onb2-step-quick .onb2-ref-input,
  #onb2-step-profile .onb2-ref-input{
    min-height:48px;
    font-size:14px;
  }
  #onb2-step-quick .onb2-ref-primary,
  #onb2-step-profile .onb2-ref-primary{
    min-height:54px;
  }
}

/* ONBOARDING-r32b — keep large portrait tablets in portrait composition. */
@media (min-width:1200px) and (orientation:portrait){
  #onb2-step-quick .onb2-ref-body{
    grid-template-columns:1fr;
    grid-template-areas:"title" "avatar" "form";
    column-gap:0;
  }
  #onb2-step-profile .onb2-modal--profile-ref{
    grid-template-columns:1fr;
    grid-template-areas:"status" "topbar" "head" "form" "footer";
    column-gap:0;
  }
}
