/* ONBOARDING-r4 — app-style role selection screen.
   Scope: only the existing OnboardingV2 role step (#onb2-step-role).
   This is a visual/do-not-rewrite patch: it keeps existing role selection logic. */
#onb2-overlay:has(#onb2-step-role.active){
  background:#f7f7f8;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
#onb2-step-role .onb2-modal{
  width:min(430px, 100%);
  margin:0 auto;
  min-height:100dvh;
  height:100dvh;
  background:#fff;
  color:#111827;
  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);
  overflow:hidden;
}
#onb2-step-role .onb2-modal-head{
  position:relative;
  padding:18px 16px 12px;
  border-bottom:0;
  background:#fff;
}
#onb2-step-role .onb2-modal-head::before{
  content:'9:41';
  display:block;
  height:18px;
  margin-bottom:9px;
  color:#111827;
  font-size:11px;
  line-height:18px;
  font-weight:850;
}
#onb2-step-role .onb2-modal-head::after{
  content:'';
  display:block;
  width:118px;
  height:4px;
  margin-top:13px;
  border-radius:999px;
  background:linear-gradient(90deg,#ffc400 0 52%,#ececef 52% 100%);
}
#onb2-step-role .onb2-headbar{
  display:none;
}
#onb2-step-role .onb2-modal-kicker{
  min-height:22px;
  padding:0 9px;
  border-radius:999px;
  background:#fff1c2;
  border:0;
  color:#f59e0b;
  font-size:10px;
  line-height:22px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
#onb2-step-role .onb2-modal-title{
  margin-top:10px;
  color:#111827;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:22px;
  line-height:1.12;
  font-weight:950;
  letter-spacing:-.04em;
}
#onb2-step-role .onb2-modal-sub{
  width:min(320px, 100%);
  margin-top:8px;
  color:#374151;
  font-size:13px;
  line-height:1.45;
  font-weight:650;
}
#onb2-step-role .onb2-modal-meta{
  display:none;
}
#onb2-step-role .onb2-routebar{
  display:none;
}
#onb2-step-role .onb2-modal-body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:14px 16px 104px;
  background:linear-gradient(180deg,#fff 0%,#f8f8f9 100%);
}
#onb2-step-role .onb2-shell,
#onb2-step-role .onb2-shell--role{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}
#onb2-step-role .onb2-roles{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
#onb2-step-role .onb2-role-card{
  min-height:86px;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 28px;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border-radius:18px;
  border:1px solid #e8e8ea;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.055);
  color:#111827;
}
#onb2-step-role .onb2-role-card.onb2-role--featured,
#onb2-step-role .onb2-role-card.is-selected{
  border-color:#ffc400;
  background:#fffdf4;
  box-shadow:0 12px 28px rgba(255,196,0,.14), 0 8px 20px rgba(15,23,42,.045);
}
#onb2-step-role .onb2-role-card::after{
  content:'';
  width:20px;
  height:20px;
  border-radius:999px;
  border:2px solid #d1d5db;
  grid-column:3;
  grid-row:1;
  align-self:center;
  justify-self:end;
  box-sizing:border-box;
}
#onb2-step-role .onb2-role-card.is-selected::after,
#onb2-step-role .onb2-role-card.onb2-role--featured::after{
  content:'✓';
  border-color:#ffc400;
  background:#ffc400;
  color:#111827;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:950;
}
#onb2-step-role .onb2-role-badge{
  top:0;
  right:16px;
  min-height:20px;
  padding:0 8px;
  border-radius:0 0 8px 8px;
  background:#ffc400;
  color:#111827;
  font-size:8.5px;
  line-height:20px;
  font-weight:950;
  letter-spacing:.04em;
}
#onb2-step-role .onb2-role-top{
  display:contents;
}
#onb2-step-role .onb2-role-ico-wrap{
  grid-column:1;
  grid-row:1;
  width:58px;
  height:58px;
  border-radius:14px;
  background:#f4f4f5;
  border:1px solid #ececef;
  box-shadow:none;
}
#onb2-step-role .onb2-role-ico{
  font-size:30px;
  line-height:1;
  filter:grayscale(.2) contrast(1.04);
}
#onb2-step-role .onb2-role-main{
  grid-column:2;
  grid-row:1;
  gap:5px;
}
#onb2-step-role .onb2-role-name-row{
  display:block;
}
#onb2-step-role .onb2-role-name{
  color:#111827 !important;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.15;
  font-weight:950;
  letter-spacing:-.02em;
}
#onb2-step-role .onb2-role-arrow{
  display:none;
}
#onb2-step-role .onb2-role-desc{
  display:block;
  color:#6b7280;
  font-size:11.5px;
  line-height:1.32;
  font-weight:700;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
#onb2-step-role .onb2-role-features{
  display:none;
}
#onb2-step-role .onb2-role-card:active{
  transform:scale(.992);
}
#onb2-step-role .onb2-role-card:focus-visible{
  outline:2px solid #ffc400;
  outline-offset:2px;
}
#onb2-step-role::after{
  content:'Выберите роль, чтобы продолжить настройку профиля';
  position:absolute;
  left:50%;
  bottom:max(14px, env(safe-area-inset-bottom));
  width:min(398px, calc(100% - 32px));
  min-height:46px;
  transform:translateX(-50%);
  border-radius:14px;
  background:#ffc400;
  color:#111827;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  text-align:center;
  font-size:13px;
  line-height:1.2;
  font-weight:950;
  box-shadow:0 16px 34px rgba(255,196,0,.24);
  pointer-events:none;
}
@media (min-width:768px){
  #onb2-step-role .onb2-modal{
    border-radius:28px;
    margin:20px auto;
    height:calc(100dvh - 40px);
    min-height:0;
  }
}
@media (max-width:360px){
  #onb2-step-role .onb2-modal-head{padding-left:13px;padding-right:13px;}
  #onb2-step-role .onb2-modal-body{padding-left:13px;padding-right:13px;}
  #onb2-step-role .onb2-role-card{grid-template-columns:52px minmax(0,1fr) 24px;padding:12px;}
  #onb2-step-role .onb2-role-ico-wrap{width:52px;height:52px;}
  #onb2-step-role .onb2-modal-title{font-size:21px;}
}


/* ONBOARDING-r18 — reference role screen: selectable cards + real continue CTA. */
#onb2-overlay:has(#onb2-step-role.active){
  background:#f4f4f5;
}
#onb2-step-role .onb2-modal{
  background:#fff;
}
#onb2-step-role .onb2-modal-head{
  padding:16px 16px 10px;
}
#onb2-step-role .onb2-modal-head::after{
  width:128px;
  margin-top:14px;
  background:linear-gradient(90deg,#ffc400 0 28%,#ececef 28% 100%);
}
#onb2-step-role .onb2-modal-kicker{
  display:none;
}
#onb2-step-role .onb2-modal-title{
  margin-top:26px;
  font-size:23px;
  line-height:1.08;
}
#onb2-step-role .onb2-modal-sub{
  margin-top:9px;
  max-width:315px;
  color:#2f3744;
  font-size:13px;
  line-height:1.45;
  font-weight:700;
}
#onb2-step-role .onb2-modal-body{
  padding:16px 16px 98px;
  background:#fff;
  overflow:auto;
}
#onb2-step-role .onb2-roles{
  gap:13px;
}
#onb2-step-role .onb2-role-card{
  position:relative;
  min-height:82px;
  grid-template-columns:54px minmax(0,1fr) 24px;
  gap:12px;
  padding:12px 13px;
  border-radius:16px;
  border:1px solid #e7e7ea;
  box-shadow:0 9px 22px rgba(15,23,42,.055);
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .12s ease;
}
#onb2-step-role .onb2-role-card.onb2-role--featured,
#onb2-step-role .onb2-role-card.is-selected{
  border-color:#ffc400;
  background:#fffdf5;
  box-shadow:0 0 0 1px rgba(255,196,0,.18), 0 12px 26px rgba(255,196,0,.12), 0 8px 18px rgba(15,23,42,.04);
}
#onb2-step-role .onb2-role-card.onb2-role--featured:not(.is-selected){
  border-color:#e7e7ea;
  background:#fff;
  box-shadow:0 9px 22px rgba(15,23,42,.055);
}
#onb2-step-role .onb2-role-card.onb2-role--featured:not(.is-selected)::after{
  content:'';
  border-color:#d1d5db;
  background:#fff;
  color:transparent;
}
#onb2-step-role .onb2-role-badge{
  display:none;
}
#onb2-step-role .onb2-role-ico-wrap{
  width:54px;
  height:54px;
  border-radius:14px;
  background:#f6f6f7;
  border:1px solid #ededf0;
}
#onb2-step-role .onb2-role-card.is-selected .onb2-role-ico-wrap{
  background:#fff7d6;
  border-color:rgba(255,196,0,.42);
}
#onb2-step-role .onb2-role-ico{
  font-size:26px;
  filter:none;
}
#onb2-step-role .onb2-role-name{
  font-size:15.5px;
  line-height:1.14;
  letter-spacing:-.015em;
}
#onb2-step-role .onb2-role-desc{
  margin-top:5px;
  color:#5f6673;
  font-size:11.8px;
  line-height:1.25;
  font-weight:760;
  -webkit-line-clamp:1;
}
#onb2-step-role::after{
  display:none;
}
#onb2-step-role .onb2-role-footer{
  position:absolute;
  left:50%;
  bottom:0;
  z-index:8;
  width:min(430px,100%);
  transform:translateX(-50%);
  padding:12px 16px max(14px, env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.94) 18%,#fff 100%);
  box-sizing:border-box;
}
#onb2-step-role .onb2-role-continue{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:12px;
  background:linear-gradient(180deg,#ffc400,#f4b400);
  color:#111827;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:14px;
  line-height:1;
  font-weight:950;
  box-shadow:0 15px 30px rgba(255,196,0,.24);
}
#onb2-step-role .onb2-role-continue:active{
  transform:translateY(1px) scale(.995);
}
#onb2-step-role .onb2-role-continue:focus-visible{
  outline:2px solid #111827;
  outline-offset:2px;
}
@media (min-width:768px){
  #onb2-step-role .onb2-role-footer{
    bottom:20px;
    border-radius:0 0 28px 28px;
  }
}
@media (max-width:360px){
  #onb2-step-role .onb2-modal-title{font-size:21px;margin-top:20px;}
  #onb2-step-role .onb2-modal-body{padding-bottom:92px;}
  #onb2-step-role .onb2-role-card{min-height:76px;grid-template-columns:50px minmax(0,1fr) 22px;}
  #onb2-step-role .onb2-role-ico-wrap{width:50px;height:50px;}
  #onb2-step-role .onb2-role-name{font-size:14.5px;}
}


/* ONBOARDING-r21 — second screen from provided sketch/background.
   Scope: visual layer for #onb2-step-role only. Flow, API, role saving and next city step are unchanged. */
#onb2-overlay:has(#onb2-step-role.active){
  background:#f6f2ef;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
#onb2-step-role .onb2-modal{
  width:min(430px,100%);
  max-width:430px;
  height:100dvh;
  min-height:100dvh;
  margin:0 auto;
  position:relative;
  background:#fff url('../assets/onboarding/role_choice_bg.png') center center / cover no-repeat;
  border:0;
  box-shadow:0 22px 70px rgba(15,23,42,.14);
  overflow:hidden;
}
#onb2-step-role .onb2-modal::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.10) 0%,rgba(255,255,255,.04) 52%,rgba(255,255,255,0) 100%);
  pointer-events:none;
}
#onb2-step-role .onb2-modal-head{
  position:relative;
  z-index:2;
  padding:22px 32px 8px;
  background:transparent;
  border:0;
}
#onb2-step-role .onb2-modal-head::before{
  content:'9:41';
  height:22px;
  margin:0 0 58px;
  color:#111827;
  font-size:15px;
  line-height:22px;
  font-weight:900;
  letter-spacing:-.02em;
}
#onb2-step-role .onb2-modal-head::after{
  display:none;
}
#onb2-step-role .onb2-headbar{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0 auto 152px;
}
#onb2-step-role .onb2-brandbox{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  width:100%;
}
#onb2-step-role .onb2-brand-logo{
  display:block;
  width:min(100%, 360px);
  max-width:360px;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 8px 14px rgba(255,90,0,.08));
}
#onb2-step-role .onb2-brandmark,
#onb2-step-role .onb2-brandcopy,
#onb2-step-role .onb2-brandbox::after{
  display:none !important;
}
#onb2-step-role .onb2-modal-kicker,
#onb2-step-role .onb2-stepdots,
#onb2-step-role .onb2-modal-meta,
#onb2-step-role .onb2-routebar{
  display:none !important;
}
#onb2-step-role .onb2-modal-title{
  margin:0;
  max-width:330px;
  color:#24262b;
  font-size:28px;
  line-height:1.08;
  font-weight:950;
  letter-spacing:-.045em;
}
#onb2-step-role .onb2-modal-sub{
  margin-top:17px;
  max-width:330px;
  color:#5c5f66;
  font-size:21px;
  line-height:1.3;
  font-weight:650;
  letter-spacing:-.025em;
}
#onb2-step-role .onb2-modal-body{
  position:relative;
  z-index:3;
  padding:34px 32px 132px;
  background:transparent;
  overflow:auto;
  scrollbar-width:none;
}
#onb2-step-role .onb2-modal-body::-webkit-scrollbar{display:none;}
#onb2-step-role .onb2-roles{
  gap:18px;
}
#onb2-step-role .onb2-role-card{
  min-height:92px;
  grid-template-columns:64px minmax(0,1fr) 38px;
  gap:16px;
  padding:16px 18px;
  border-radius:14px;
  border:1px solid rgba(29,33,40,.16);
  background:rgba(255,255,255,.78);
  box-shadow:0 10px 24px rgba(20,24,32,.035);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
#onb2-step-role .onb2-role-card.onb2-role--featured:not(.is-selected){
  border-color:rgba(29,33,40,.16);
  background:rgba(255,255,255,.78);
  box-shadow:0 10px 24px rgba(20,24,32,.035);
}
#onb2-step-role .onb2-role-card.is-selected,
#onb2-step-role .onb2-role-card.onb2-role--featured.is-selected,
#onb2-step-role .onb2-role-card.onb2-role--featured{
  border-color:#ff5a00;
  background:rgba(255,255,255,.86);
  box-shadow:0 12px 26px rgba(255,90,0,.08),0 0 0 1px rgba(255,90,0,.22);
}
#onb2-step-role .onb2-role-card::after,
#onb2-step-role .onb2-role-card.onb2-role--featured:not(.is-selected)::after{
  content:'';
  width:0;
  height:0;
  border:0;
  background:transparent;
}
#onb2-step-role .onb2-role-card.is-selected::after,
#onb2-step-role .onb2-role-card.onb2-role--featured::after{
  content:'✓';
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:#ff5a00;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:23px;
  font-weight:950;
  line-height:1;
}
#onb2-step-role .onb2-role-ico-wrap{
  width:62px;
  height:62px;
  border-radius:12px;
  background:transparent;
  border:0;
  box-shadow:none;
}
#onb2-step-role .onb2-role-card.is-selected .onb2-role-ico-wrap{
  background:transparent;
  border:0;
}
#onb2-step-role .onb2-role-ico{
  display:flex;
  align-items:center;
  justify-content:center;
  width:62px;
  height:62px;
  font-size:0;
  filter:none;
}
#onb2-step-role .onb2-role-svg{
  width:58px;
  height:58px;
  display:block;
}
#onb2-step-role .onb2-role-name{
  color:#24262b !important;
  font-size:21px;
  line-height:1.13;
  font-weight:950;
  letter-spacing:-.025em;
}
#onb2-step-role .onb2-role-desc{
  margin-top:9px;
  color:#5c5f66;
  font-size:17px;
  line-height:1.18;
  font-weight:600;
  letter-spacing:-.02em;
  -webkit-line-clamp:1;
}
#onb2-step-role .onb2-role-footer{
  position:absolute;
  z-index:5;
  left:50%;
  bottom:42px;
  width:min(366px,calc(100% - 64px));
  transform:translateX(-50%);
  padding:0;
  background:transparent;
}
#onb2-step-role .onb2-role-continue{
  min-height:64px;
  border-radius:14px;
  background:linear-gradient(180deg,#ff6908 0%,#ff5200 100%);
  color:#fff;
  font-size:22px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.02em;
  box-shadow:0 16px 30px rgba(255,82,0,.26);
}
#onb2-step-role .onb2-role-continue:focus-visible{
  outline:2px solid #24262b;
  outline-offset:3px;
}
@media (min-width:768px){
  #onb2-step-role .onb2-modal{
    height:calc(100dvh - 32px);
    min-height:0;
    margin:16px auto;
    border-radius:30px;
  }
  #onb2-step-role .onb2-role-footer{
    bottom:42px;
    border-radius:0;
  }
}
@media (max-width:390px){
  #onb2-step-role .onb2-modal-head{padding-left:28px;padding-right:28px;}
  #onb2-step-role .onb2-modal-body{padding-left:28px;padding-right:28px;}
  #onb2-step-role .onb2-headbar{margin-bottom:132px;}
  #onb2-step-role .onb2-brandtext{font-size:26px;}
  #onb2-step-role .onb2-brandsub{font-size:14px;}
  #onb2-step-role .onb2-modal-title{font-size:26px;}
  #onb2-step-role .onb2-modal-sub{font-size:19px;}
  #onb2-step-role .onb2-role-card{min-height:86px;grid-template-columns:58px minmax(0,1fr) 34px;padding:14px 15px;}
  #onb2-step-role .onb2-role-ico,#onb2-step-role .onb2-role-ico-wrap{width:56px;height:56px;}
  #onb2-step-role .onb2-role-svg{width:54px;height:54px;}
  #onb2-step-role .onb2-role-name{font-size:19px;}
  #onb2-step-role .onb2-role-desc{font-size:15.5px;}
  #onb2-step-role .onb2-role-footer{width:calc(100% - 56px);bottom:34px;}
}
@media (max-height:760px){
  #onb2-step-role .onb2-modal-head::before{margin-bottom:38px;}
  #onb2-step-role .onb2-headbar{margin-bottom:92px;}
  #onb2-step-role .onb2-modal-body{padding-top:22px;padding-bottom:112px;}
  #onb2-step-role .onb2-role-card{min-height:80px;}
  #onb2-step-role .onb2-role-footer{bottom:24px;}
  #onb2-step-role .onb2-role-continue{min-height:58px;}
}


@media (max-width:420px){
  #onb2-step-role .onb2-brand-logo{
    width:min(100%, 330px);
    max-width:330px;
  }
}


/* ONBOARDING-r24 — role screen aligned to new reference. Scope: #onb2-step-role only. */
#onb2-overlay:has(#onb2-step-role.active){
  background:linear-gradient(180deg,#f6f6f7 0%,#ececec 100%);
}
#onb2-step-role{
  position:relative;
}
#onb2-step-role::after{
  display:none !important;
}
#onb2-step-role .onb2-modal{
  position:relative;
  width:min(430px,100%);
  min-height:100dvh;
  background:linear-gradient(180deg,#f7f7f8 0%,#efefef 100%);
  box-shadow:0 18px 60px rgba(20,24,32,.12);
}
#onb2-step-role .onb2-modal::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 24%, rgba(255,255,255,.9), rgba(255,255,255,0) 42%), linear-gradient(90deg, rgba(0,0,0,.02), rgba(255,255,255,.06) 20%, rgba(0,0,0,.02) 50%, rgba(255,255,255,.06) 80%, rgba(0,0,0,.02));
  pointer-events:none;
}
#onb2-step-role .onb2-modal-head,
#onb2-step-role .onb2-modal-body,
#onb2-step-role .onb2-role-privacy{
  position:relative;
  z-index:1;
}
#onb2-step-role .onb2-modal-head{
  padding:36px 20px 10px;
  text-align:center;
  background:transparent;
}
#onb2-step-role .onb2-modal-head::before{
  content:'9:41';
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 0 34px;
  height:auto;
  color:#0f1720;
  font-size:12px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.03em;
}
#onb2-step-role .onb2-modal-head::after,
#onb2-step-role .onb2-modal-kicker,
#onb2-step-role .onb2-stepdots,
#onb2-step-role .onb2-modal-meta,
#onb2-step-role .onb2-routebar,
#onb2-step-role .onb2-role-footer,
#onb2-step-role .onb2-role-features,
#onb2-step-role .onb2-role-arrow,
#onb2-step-role .onb2-role-badge{
  display:none !important;
}
#onb2-step-role .onb2-headbar{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0 auto 54px;
}
#onb2-step-role .onb2-brandbox{
  width:100%;
  justify-content:center;
}
#onb2-step-role .onb2-brand-logo{
  width:min(100%, 328px);
  max-width:328px;
  filter:drop-shadow(0 8px 14px rgba(255,90,0,.08));
}
#onb2-step-role .onb2-modal-title{
  margin:0;
  color:#08111a;
  font-size:34px;
  line-height:1.08;
  font-weight:950;
  letter-spacing:-.05em;
}
#onb2-step-role .onb2-modal-sub{
  margin:16px auto 0;
  max-width:92%;
  color:#666b73;
  font-size:18px;
  line-height:1.35;
  font-weight:500;
  letter-spacing:-.02em;
}
#onb2-step-role .onb2-modal-body{
  padding:42px 20px 26px;
  background:transparent;
  overflow:auto;
}
#onb2-step-role .onb2-roles{
  gap:18px;
}
#onb2-step-role .onb2-role-card{
  min-height:132px;
  display:grid;
  grid-template-columns:88px minmax(0,1fr) 26px;
  align-items:center;
  gap:18px;
  padding:18px 18px 18px 20px;
  border-radius:24px;
  border:1px solid rgba(15,23,42,.05);
  background:rgba(255,255,255,.83);
  box-shadow:0 10px 28px rgba(17,24,39,.09), inset 0 1px 0 rgba(255,255,255,.65);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  color:#0c131b;
  text-align:left;
}
#onb2-step-role .onb2-role-card:hover,
#onb2-step-role .onb2-role-card:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(255,106,0,.18);
  box-shadow:0 14px 30px rgba(17,24,39,.10), 0 0 0 1px rgba(255,106,0,.12);
}
#onb2-step-role .onb2-role-card.is-selected{
  border-color:rgba(255,106,0,.18);
  box-shadow:0 14px 30px rgba(17,24,39,.10), 0 0 0 1px rgba(255,106,0,.12);
  background:rgba(255,255,255,.88);
}
#onb2-step-role .onb2-role-card::after{
  display:none !important;
}
#onb2-step-role .onb2-role-top{
  display:contents;
}
#onb2-step-role .onb2-role-ico-wrap{
  width:88px;
  height:88px;
  border-radius:20px;
  background:transparent;
  border:0;
  box-shadow:none;
  display:flex;
  align-items:center;
  justify-content:center;
}
#onb2-step-role .onb2-role-ico{
  width:78px;
  height:78px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ff6a00;
}
#onb2-step-role .onb2-role-svg{
  width:74px;
  height:74px;
  display:block;
}
#onb2-step-role .onb2-role-main{
  display:grid;
  gap:10px;
  min-width:0;
}
#onb2-step-role .onb2-role-name-row{
  display:block;
}
#onb2-step-role .onb2-role-name{
  color:#101821;
  font-size:27px;
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.035em;
}
#onb2-step-role .onb2-role-desc{
  color:#5e646d;
  font-size:17px;
  line-height:1.42;
  font-weight:500;
  letter-spacing:-.015em;
}
#onb2-step-role .onb2-role-chevron{
  display:flex;
  align-items:center;
  justify-content:center;
  width:24px;
  color:#2e333a;
  font-size:46px;
  line-height:1;
  font-weight:300;
}
#onb2-step-role .onb2-role-privacy{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:28px 0 10px;
  padding:10px 12px 0;
  color:#6a7078;
  font-size:14px;
  line-height:1.35;
  font-weight:500;
  text-align:center;
}
#onb2-step-role .onb2-role-privacy-ico{
  font-size:16px;
  line-height:1;
  transform:translateY(-1px);
}
@media (max-width:420px){
  #onb2-step-role .onb2-modal-head{padding-left:18px;padding-right:18px;padding-top:28px;}
  #onb2-step-role .onb2-headbar{margin-bottom:46px;}
  #onb2-step-role .onb2-brand-logo{width:min(100%, 286px);max-width:286px;}
  #onb2-step-role .onb2-modal-title{font-size:28px;}
  #onb2-step-role .onb2-modal-sub{font-size:15px;margin-top:14px;}
  #onb2-step-role .onb2-modal-body{padding:34px 16px 24px;}
  #onb2-step-role .onb2-roles{gap:14px;}
  #onb2-step-role .onb2-role-card{min-height:116px;grid-template-columns:72px minmax(0,1fr) 22px;gap:14px;padding:15px 16px; border-radius:20px;}
  #onb2-step-role .onb2-role-ico-wrap{width:72px;height:72px;}
  #onb2-step-role .onb2-role-ico{width:64px;height:64px;}
  #onb2-step-role .onb2-role-svg{width:60px;height:60px;}
  #onb2-step-role .onb2-role-name{font-size:24px;}
  #onb2-step-role .onb2-role-desc{font-size:14px;}
  #onb2-step-role .onb2-role-chevron{font-size:38px;}
  #onb2-step-role .onb2-role-privacy{margin-top:22px;font-size:12.5px;}
}

/* ONBOARDING-r25 — wide/tablet optimization for role selection screen. */
@media (min-width:768px){
  #onb2-overlay:has(#onb2-step-role.active){
    display:grid;
    place-items:center;
    padding:18px;
    background:radial-gradient(circle at 50% 15%, rgba(255,255,255,.96), rgba(241,241,242,.98) 56%, #e9eaec 100%);
  }
  #onb2-step-role .onb2-modal{
    width:min(960px, calc(100vw - 40px));
    max-width:960px;
    min-height:min(780px, calc(100dvh - 36px));
    height:auto;
    border-radius:34px;
    box-shadow:0 24px 80px rgba(15,23,42,.16);
  }
  #onb2-step-role .onb2-modal-head{
    padding:34px 48px 12px;
    text-align:center;
  }
  #onb2-step-role .onb2-modal-head::before{
    margin-bottom:32px;
    font-size:13px;
  }
  #onb2-step-role .onb2-headbar{
    margin-bottom:48px;
  }
  #onb2-step-role .onb2-brand-logo{
    width:min(100%, 390px);
    max-width:390px;
  }
  #onb2-step-role .onb2-modal-title{
    font-size:42px;
    line-height:1.05;
  }
  #onb2-step-role .onb2-modal-sub{
    margin-top:16px;
    max-width:720px;
    font-size:22px;
  }
  #onb2-step-role .onb2-modal-body{
    padding:52px 48px 18px;
    overflow:visible;
  }
  #onb2-step-role .onb2-roles{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:22px;
  }
  #onb2-step-role .onb2-role-card{
    min-height:258px;
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr auto;
    justify-items:center;
    align-items:center;
    gap:14px;
    padding:28px 22px 24px;
    border-radius:28px;
    text-align:center;
  }
  #onb2-step-role .onb2-role-ico-wrap{
    width:96px;
    height:96px;
  }
  #onb2-step-role .onb2-role-ico{
    width:88px;
    height:88px;
  }
  #onb2-step-role .onb2-role-svg{
    width:84px;
    height:84px;
  }
  #onb2-step-role .onb2-role-main{
    justify-items:center;
    gap:12px;
  }
  #onb2-step-role .onb2-role-name{
    font-size:28px;
  }
  #onb2-step-role .onb2-role-desc{
    max-width:240px;
    font-size:17px;
    line-height:1.35;
  }
  #onb2-step-role .onb2-role-chevron{
    width:42px;
    height:42px;
    border-radius:999px;
    background:rgba(255,106,0,.08);
    color:#ff5a00;
    font-size:38px;
    line-height:.8;
  }
  #onb2-step-role .onb2-role-privacy{
    margin:34px 0 28px;
    font-size:15px;
  }
}
@media (min-width:1024px){
  #onb2-step-role .onb2-modal{
    width:min(1120px, calc(100vw - 56px));
    max-width:1120px;
  }
  #onb2-step-role .onb2-modal-head{
    padding-left:64px;
    padding-right:64px;
  }
  #onb2-step-role .onb2-modal-body{
    padding-left:64px;
    padding-right:64px;
  }
  #onb2-step-role .onb2-role-card{
    min-height:276px;
    padding:32px 28px 26px;
  }
}
@media (min-width:768px) and (max-width:900px){
  #onb2-step-role .onb2-modal{
    width:min(820px, calc(100vw - 28px));
  }
  #onb2-step-role .onb2-modal-head{
    padding-left:34px;
    padding-right:34px;
  }
  #onb2-step-role .onb2-modal-body{
    padding-left:34px;
    padding-right:34px;
  }
  #onb2-step-role .onb2-role-card{
    min-height:236px;
    padding-left:18px;
    padding-right:18px;
  }
  #onb2-step-role .onb2-role-name{
    font-size:24px;
  }
  #onb2-step-role .onb2-role-desc{
    font-size:15px;
  }
}
@media (min-width:768px) and (max-height:760px){
  #onb2-step-role .onb2-modal{
    min-height:calc(100dvh - 24px);
  }
  #onb2-step-role .onb2-modal-head{
    padding-top:20px;
  }
  #onb2-step-role .onb2-modal-head::before{
    margin-bottom:18px;
  }
  #onb2-step-role .onb2-headbar{
    margin-bottom:28px;
  }
  #onb2-step-role .onb2-modal-body{
    padding-top:28px;
  }
  #onb2-step-role .onb2-role-card{
    min-height:214px;
  }
  #onb2-step-role .onb2-role-privacy{
    margin-top:20px;
    margin-bottom:18px;
  }
}


/* ONBOARDING-r32 — tablet/wide cleanup for role screen, actual flow only. */
@media (min-width:768px) and (orientation:portrait){
  #onb2-overlay:has(#onb2-step-role.active){
    padding:24px;
  }
  #onb2-step-role .onb2-modal{
    width:min(860px, calc(100vw - 48px));
    min-height:min(1040px, calc(100dvh - 48px));
    display:flex;
    flex-direction:column;
  }
  #onb2-step-role .onb2-modal-head{
    padding-top:34px;
    padding-bottom:8px;
  }
  #onb2-step-role .onb2-modal-body{
    flex:1 1 auto;
    display:flex;
    align-items:center;
    padding-top:38px;
    padding-bottom:26px;
  }
  #onb2-step-role .onb2-shell--role{width:100%;}
  #onb2-step-role .onb2-roles{
    grid-template-columns:1fr;
    max-width:640px;
    margin:0 auto;
  }
  #onb2-step-role .onb2-role-card{
    min-height:132px;
    grid-template-columns:92px minmax(0,1fr) 34px;
    justify-items:stretch;
    text-align:left;
  }
  #onb2-step-role .onb2-role-main{justify-items:start;}
  #onb2-step-role .onb2-role-desc{max-width:440px;}
}
@media (min-width:1200px){
  #onb2-step-role .onb2-modal{
    width:min(1280px, calc(100vw - 80px));
    max-width:1280px;
  }
  #onb2-step-role .onb2-roles{
    gap:28px;
  }
  #onb2-step-role .onb2-role-card{
    min-height:292px;
  }
}
@media (min-width:768px) and (orientation:landscape) and (max-height:680px){
  #onb2-step-role .onb2-modal{
    min-height:calc(100dvh - 20px);
  }
  #onb2-step-role .onb2-modal-head{
    padding-top:14px;
  }
  #onb2-step-role .onb2-modal-head::before{margin-bottom:12px;}
  #onb2-step-role .onb2-headbar{margin-bottom:16px;}
  #onb2-step-role .onb2-brand-logo{max-width:300px;}
  #onb2-step-role .onb2-modal-title{font-size:30px;}
  #onb2-step-role .onb2-modal-sub{font-size:16px;}
  #onb2-step-role .onb2-modal-body{padding-top:18px;padding-bottom:8px;}
  #onb2-step-role .onb2-role-card{min-height:172px;padding:20px 18px 18px;}
  #onb2-step-role .onb2-role-ico-wrap{width:74px;height:74px;}
  #onb2-step-role .onb2-role-ico{width:68px;height:68px;}
  #onb2-step-role .onb2-role-svg{width:64px;height:64px;}
  #onb2-step-role .onb2-role-name{font-size:23px;}
  #onb2-step-role .onb2-role-desc{font-size:14px;}
  #onb2-step-role .onb2-role-privacy{margin-top:12px;margin-bottom:12px;}
}
