:root{
  --bb-green:#18CA8E;
  --bb-purple:#6453F8;
  --bb-text:#0F172A;
  --bb-muted:#64748B;
  /* Match operator background for consistent look across the project */
  --bb-page:#F6F6F6;
  --bb-border:rgba(15,23,42,.10);
  --bb-card:#ffffff;
}

.bb-hidden{ display:none !important; }

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

body.bb-page{
  background: var(--aa-bg, var(--bb-page));
  color: var(--aa-text, var(--bb-text));
  font-family: "Plus Jakarta Sans", Inter, Gilroy, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.bb-card{
  background: var(--aa-surface, var(--bb-card));
  border: 1px solid var(--aa-border, var(--bb-border));
  border-radius: 18px;
  box-shadow: var(--aa-shadow, 0 14px 40px rgba(15,23,42,.08));
}

.bb-public-topbar{
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--aa-border, rgba(15,23,42,.08));
  box-shadow: 0 2px 10px rgba(15,23,42,.05);
}

.bb-public-topbar__actions{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.bb-public-topbar__phone{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--aa-border, #E6E9F4);
  border-radius: 12px;
  background: #fff;
  color: var(--aa-text, var(--bb-text));
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bb-public-topbar__phone-ico{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--aa-primary-30, rgba(100,83,248,.1));
  color: var(--aa-primary, var(--bb-purple));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.bb-public-topbar__phone-ico img{
  width: 14px;
  height: 14px;
  display: block;
}

.bb-public-topbar__action{
  min-width: 92px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--aa-border, #E6E9F4);
  background: #fff;
  color: var(--aa-text, var(--bb-text));
  font-size: 13px;
  font-weight: 700;
}

.bb-public-topbar__action--primary{
  background: var(--aa-primary, var(--bb-purple));
  border-color: var(--aa-primary, var(--bb-purple));
  color: #fff;
}

.bb-public-topbar__socials{
  display: flex;
  align-items: center;
  gap: 8px;
}

.bb-public-topbar__icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

/* Smooth enter animation for auth/onboarding pages (avoid "hard jump" on navigation). */
@media (prefers-reduced-motion: no-preference){
  .bb-auth__card,
  .bb-onboard__card{
    animation: bb-enter .28s ease-out both;
  }
  @keyframes bb-enter{
    from{ opacity: 0; transform: translateY(10px); }
    to{ opacity: 1; transform: translateY(0); }
  }
}

.bb-auth{
  padding: 40px 0 72px;
}
.bb-auth__wrap{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.bb-auth__card{
  padding: 40px 40px;
}
.bb-auth__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items:center;
}
.bb-auth__title{
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 10px;
  font-weight: 800;
  color: var(--aa-text, var(--bb-text));
}
.bb-auth__subtitle{
  color: var(--aa-muted, var(--bb-muted));
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 440px;
}
.bb-auth__right{
  display:flex;
  justify-content:center;
  align-self: stretch;
}
.bb-auth__art{
  max-width: 420px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.bb-form{
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.bb-form--modal{
  align-items:stretch;
}
.bb-form--modal .bb-field{
  text-align:left;
}
.bb-form__hint{
  min-height: 22px;
  margin-top: 6px;
  color: var(--bb-muted);
  font-size: 14px;
}
.bb-form__hint.is-error{ color: #ef4444; }
.bb-form__hint.is-ok{ color: var(--bb-green); }

.bb-field__label{
  display:block;
  font-size: 12px;
  color: var(--aa-soft, #7E84A3);
  font-weight: 700;
  margin-bottom: 8px;
}
.bb-field__meta{
  font-weight: 600;
  color: var(--bb-muted);
}
.bb-input{
  width: 100%;
  border: 1px solid var(--aa-border, #E6E9F4);
  border-radius: 8px;
  padding: 0 14px;
  height: 44px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: var(--aa-text, var(--bb-text));
  transition: box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.bb-input::placeholder{
  color: var(--aa-soft, #7E84A3);
  font-weight: 500;
}
.bb-input:focus{
  outline: none;
  border-color: var(--aa-primary, rgba(100,83,248,.85));
  box-shadow: 0 0 0 3px rgba(100,83,248,.12);
}

/* Validation */
.bb-field__error{
  display:block;
  min-height: 16px;
  margin-top: 6px;
  font-size: 12px;
  color: #ef4444;
}
.bb-input.is-invalid{
  border-color: rgba(239,68,68,.95) !important;
}
.bb-input.is-invalid:focus{
  border-color: rgba(239,68,68,.95) !important;
  box-shadow: inset 0 0 0 2px rgba(239,68,68,.18) !important;
}
.bb-drop.is-invalid .bb-drop__box{
  border-color: rgba(239,68,68,.95) !important;
}
.bb-input--phone{
  /* в кабинете заказчика на регистрации иконки в полях не используем */
  padding-left: 16px;
  background-image: none;
}
.bb-input--select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15,23,42,.55) 50%),
    linear-gradient(135deg, rgba(15,23,42,.55) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.bb-input--textarea{
  resize: vertical;
  min-height: 120px;
  height: auto;
  padding: 12px 14px;
}

.bb-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 8px;
  padding: 0 18px;
  min-height: 40px;
  font-weight: 700;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  user-select:none;
  border: 0;
  outline: none;
}
.bb-btn:focus{ outline:none; }
.bb-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(100,83,248,.28);
}
.bb-btn:active{ transform: translateY(1px); }
.bb-btn--xl{ min-height: 44px; padding: 0 18px; font-size: 14px; width: 100%; }

/* В модалках (OTP/изменение номера) кнопка не должна "прилипать" на всю ширину панели */
.bb-modal__panel .bb-btn--xl{
  width: min(520px, 100%);
  max-width: 420px;
  margin: 0 auto;
}
.bb-btn--green{
  background: var(--aa-primary, var(--bb-green));
  color:#fff;
  box-shadow: none;
}
.bb-btn--green:hover{
  background: var(--aa-primary-90, #5b4af0);
  box-shadow: none;
}
.bb-btn--purple{
  background: var(--aa-primary, var(--bb-purple));
  color:#fff;
  box-shadow: none;
}
.bb-btn--purple:hover{ background: var(--aa-primary-90, #5b4af0); box-shadow: none; }

.bb-btn--ghost{
  background: #fff;
  color: rgba(15,23,42,.70);
  border: 1px solid rgba(15,23,42,.14);
  box-shadow: none;
}
.bb-btn--ghost:hover{
  background: rgba(15,23,42,.03);
}

.bb-link{
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--bb-purple);
  font-weight: 700;
  cursor: pointer;
}
.bb-link--muted{
  color: rgba(100,83,248,.85);
  font-weight: 600;
}

/* Modals */
.bb-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}
.bb-modal.is-open{ display:block; }
.bb-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(15,23,42,.32);
}
.bb-modal__panel{
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 32px));
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(15,23,42,.18);
  text-align:center;
}
.bb-modal__panel--small{
  width: min(520px, calc(100% - 32px));
  /* чтобы верхняя грань была на одном уровне с окном подтверждения */
  margin-top: 8vh;
}
.bb-modal__title{
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 14px;
  font-weight: 800;
}
.bb-modal__icon img{
  width: 140px;
  height: auto;
  display:block;
  margin: 0 auto 12px;
}
.bb-modal__text{
  color: var(--aa-muted, var(--bb-muted));
  margin-bottom: 14px;
  line-height: 1.5;
  font-size: 14px;
}
.bb-modal__text-top{ display:block; }
.bb-modal__text-phone{
  display:block;
  color: var(--aa-text, rgba(15,23,42,.82));
  font-weight: 600;
  /* чтобы номер не "ломался" по дефису */
  white-space: nowrap;
}
.bb-modal__help{
  color: var(--bb-muted);
  margin: 10px 0 18px;
}

.bb-modal__actions{
  display:flex;
  flex-direction:column;
  gap: 12px;
  align-items:center;
  justify-content:center;
  margin-top: 8px;
}

/* без "свечения" у текста/ссылок */
.bb-modal__text,
.bb-link{ text-shadow: none; filter: none; }

.bb-link--inline{
  margin: 2px 0 4px;
}
.bb-link--center{
  align-self:center;
  margin-top: -2px;
}

#bbAdminPasswordModal .bb-modal__panel,
#bbAdminSetupModal .bb-modal__panel,
#bbAdminResetConfirmModal .bb-modal__panel,
#bbAdminResetPasswordModal .bb-modal__panel,
#bbLoginConfirmModal .bb-modal__panel{
  width: min(520px, calc(100% - 32px));
}

/* Кнопка "Отправить код повторно" должна стоять под основной кнопкой */
#bbResendPhone{
  display:block;
  margin: 10px auto 0;
}

/* Убираем свечение (тень) у кнопки "Подтвердить" в окне подтверждения номера */
#bbPhoneConfirmModal .bb-btn--green{
  box-shadow: none !important;
}
#bbPhoneConfirmModal .bb-btn--green:hover{
  box-shadow: none !important;
}
/* Убираем свечение у кнопки подтверждения в модалке почты */
#bbEmailConfirmModal .bb-btn--green{
  box-shadow: none !important;
}
#bbEmailConfirmModal .bb-btn--green:hover{
  box-shadow: none !important;
}

/* Окно "Изменение номера" — компактно и аккуратно, без градиентов/свечений у кнопок */
#bbChangePhoneModal .bb-modal__panel{
  /* компактнее, как раньше, но на том же уровне по верху */
  margin-top: 8vh;
  padding: 30px 30px 24px;
}
#bbChangePhoneModal .bb-modal__help{
  max-width: 420px;
  margin: 10px auto 16px;
}
#bbChangePhoneModal .bb-modal__actions{
  margin-top: 12px;
  gap: 10px;
}
#bbChangePhoneModal .bb-btn--purple{
  background: var(--bb-purple) !important;
  box-shadow: none !important;
}
#bbChangePhoneModal .bb-btn--purple:hover{
  background: #5b4af0 !important;
  box-shadow: none !important;
}
#bbChangePhoneModal .bb-btn--ghost{
  box-shadow: none !important;
}

/* Кнопки в смене почты — тоже без градиента/свечения */
#bbChangeEmailModal .bb-btn--purple{
  background: var(--bb-purple) !important;
  box-shadow: none !important;
}
#bbChangeEmailModal .bb-btn--purple:hover{
  background: #5b4af0 !important;
  box-shadow: none !important;
}
#bbChangeEmailModal .bb-btn--ghost{
  box-shadow: none !important;
}

/* Анимация: окно смены номера "выеезжает" сверху (поверх окна подтверждения) */
#bbChangePhoneModal{
  /* не дёргаем display: открываем/закрываем через opacity */
}
#bbChangePhoneModal .bb-modal__backdrop{
  opacity: 0;
  transition: opacity 180ms ease;
}
#bbChangePhoneModal .bb-modal__panel{
  opacity: 0;
  transform: translateY(-28px);
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease;
  will-change: transform, opacity;
}
#bbChangePhoneModal.is-open .bb-modal__backdrop{
  opacity: 1;
}
#bbChangePhoneModal.is-open .bb-modal__panel{
  opacity: 1;
  transform: translateY(0);
}
#bbChangePhoneModal.is-closing .bb-modal__backdrop{
  opacity: 0;
}
#bbChangePhoneModal.is-closing .bb-modal__panel{
  opacity: 0;
  transform: translateY(-18px);
}

/* Поле телефона с флагом (как в макете) */
.bb-phonefield{
  display:flex;
  align-items:center;
  gap: 12px;
  border: 2px solid rgba(100,83,248,.85);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 14px auto 6px;
  max-width: 520px;
}
.bb-phonefield__flag{
  width: 28px;
  height: 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.bb-phonefield__input{
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
  /* base.css навешивает иконку на input[type=tel] — отключаем внутри этой модалки */
  background-image: none !important;
  font-size: 20px;
  font-weight: 800;
  color: #0B1220;
  width: 100%;
}
.bb-phonefield__input::placeholder{
  color: rgba(15,23,42,.45);
  font-weight: 700;
}

/* Поле email в модалке смены почты */
.bb-emailfield{
  display:flex;
  align-items:center;
  border: 2px solid rgba(100,83,248,.85);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 14px auto 6px;
  max-width: 520px;
}
.bb-emailfield__input{
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: 18px;
  font-weight: 800;
  color: #0B1220;
}
.bb-emailfield__input::placeholder{
  color: rgba(15,23,42,.45);
  font-weight: 700;
}

/* Анимация: окно смены почты "выеезжает" сверху (поверх подтверждения) */
#bbChangeEmailModal .bb-modal__backdrop{
  opacity: 0;
  transition: opacity 180ms ease;
}
#bbChangeEmailModal .bb-modal__panel{
  opacity: 0;
  transform: translateY(-28px);
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease;
  will-change: transform, opacity;
}
#bbChangeEmailModal.is-open .bb-modal__backdrop{ opacity: 1; }
#bbChangeEmailModal.is-open .bb-modal__panel{ opacity: 1; transform: translateY(0); }
#bbChangeEmailModal.is-closing .bb-modal__backdrop{ opacity: 0; }
#bbChangeEmailModal.is-closing .bb-modal__panel{ opacity: 0; transform: translateY(-18px); }

/* Steps: лёгкая анимация прогресса слева */
.bb-steps__badge{
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.bb-steps__item.is-active .bb-steps__badge{ transform: scale(1.06); }
.bb-steps__item{
  transition: color .18s ease;
}
.bb-steps__item.is-done{ color: rgba(15,23,42,.72); }
.bb-steps__item.is-done .bb-steps__badge{
  background: rgba(24,202,142,.18);
  color: var(--bb-green);
}

.bb-otp{
  display:flex;
  flex-direction:column;
  gap: 14px;
  margin-bottom: 8px;
}
.bb-otp__inputs{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin: 14px 0 6px;
}
.bb-otp__digit{
  width: 54px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #A0ABBB;
  text-align:center;
  font-size: 18px;
  font-weight: 800;
}
.bb-otp__digit:focus{
  outline: none;
  border-color: rgba(100,83,248,.85);
  box-shadow: inset 0 0 0 2px rgba(100,83,248,.95);
}

/* Отключаем иконки из landing base.css на экранах регистрации заказчика */
.bb-auth input[name="name"],
.bb-auth input[type="tel"]{
  background-image: none !important;
  padding-left: 16px !important;
  /* base.css задаёт border-radius: unset для этих селекторов — возвращаем скругления как в приложении */
  border-radius: 10px !important;
}

/* На всякий случай: все инпуты в auth-экранах должны быть скруглённые */
.bb-auth .bb-input{
  border-radius: 10px !important;
}

/* Onboarding card (big but not full width) */
.bb-onboard{
  padding: 34px 0 72px;
}
.bb-onboard__card{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px;
  width: 100%;
  /* фиксируем «окно» по ширине как в макете, чтобы шаги 2/3 не “прыгали” */
  max-width: 1240px;
  margin: 0 auto;
}
.bb-steps{
  border-right: 1px solid var(--aa-border, rgba(15,23,42,.08));
  padding-right: 20px;
}
.bb-steps__title{
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  margin: 6px 0 20px;
  color: var(--aa-text, var(--bb-text));
}
.bb-steps__list{
  display:flex;
  flex-direction:column;
  gap: 14px;
  padding-left: 0;
  margin: 0;
}
.bb-steps__item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  color: var(--aa-muted, rgba(15,23,42,.65));
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.bb-steps__badge{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: var(--aa-surface-soft, rgba(15,23,42,.06));
  color: var(--aa-muted, rgba(15,23,42,.70));
  font-weight: 800;
  flex: 0 0 auto;
}
.bb-steps__item.is-active .bb-steps__badge{
  background: var(--aa-primary-30, rgba(100,83,248,.16));
  color: var(--aa-primary, var(--bb-purple));
}
.bb-steps__item.is-done .bb-steps__badge{
  background: rgba(24,202,142,.18);
  color: var(--bb-green);
}
.bb-onboard__content{
  padding: 6px 6px 8px 4px;
  /* чтобы при переходе со шага подтверждения (2) на финал (3) карточка не сжималась */
  min-height: 560px;
}
.bb-onboard__title{
  font-size: 28px;
  line-height: 1.2;
  margin: 8px 0 16px;
  font-weight: 800;
  color: var(--aa-text, var(--bb-text));
}
.bb-onboard__title--center{
  text-align: center;
}

.bb-step-panel.is-hidden{
  display: none;
}

/* Inline email confirm step (inside onboarding card, not a modal) */
.bb-step-panel{
  /* enable smooth step transitions (JS toggles entering/exiting) */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.9,.2,1);
}
.bb-step-panel.is-entering{
  opacity: 0;
  transform: translateY(10px);
}
.bb-step-panel.is-exiting{
  opacity: 0;
  transform: translateY(-10px);
}

.bb-email-step{
  padding: 6px 0 0;
}
.bb-email-step__icon{
  display:flex;
  justify-content:center;
  margin: 6px 0 14px;
}
.bb-email-step__icon img{
  width: 190px;
  height: auto;
  display:block;
}
.bb-email-step__text{
  text-align:center;
  color: var(--aa-muted, #A0ABBB);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 auto 14px;
  max-width: 620px;
}
.bb-email-step__email{
  color: rgba(15,23,42,.82);
  font-weight: 700;
  white-space: nowrap;
}
.bb-email-step__footer{
  display:flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 18px;
  gap: 10px;
}
.bb-btn--back{
  width: auto;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
}
.bb-btn--confirm{
  flex: 0 0 auto;
  width: min(460px, 100%);
  border-radius: 14px; /* как у остальных кнопок в кабинете */
  padding: 14px 18px;
  height: 56px;
  margin: 0 auto;
}
.bb-email-step__resend{
  display: block;
  width: fit-content;
  margin: 10px auto 0;
  text-align: center;
}
.bb-btn__ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right: 8px;
}

/* Step 3: moderation "done" screen */
.bb-done-step{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
  align-items: flex-start;
  margin-top: 8px;
}
.bb-done-step__lead{
  margin: 0 0 18px;
  font-weight: 800;
  font-size: 18px;
  line-height: 28px;
  color: var(--aa-text, rgba(15,23,42,.92));
}
.bb-done-step__p{
  margin: 0 0 14px;
  color: var(--aa-muted, rgba(15,23,42,.78));
  font-weight: 500;
  font-size: 14px;
  line-height: 1.55;
}
.bb-done-step__p--strong{
  margin-top: 18px;
  font-size: 18px;
  font-weight: 800;
  color: var(--aa-text, rgba(15,23,42,.92));
}

.bb-done-step__actions{
  margin-top: 18px;
}
.bb-done-step__art{
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  padding-top: 0;
}
.bb-done-step__art img{
  width: 320px;
  height: auto;
  display:block;
  filter: drop-shadow(0 18px 26px rgba(15,23,42,.12));
  /* опускаем визуально (без влияния на layout), чтобы текст не “проваливался” вниз */
  transform: translateY(56px);
}

@media (max-width: 980px){
  .bb-done-step{ grid-template-columns: 1fr; }
  .bb-done-step__art{ justify-content:flex-start; }
  .bb-done-step__art img{ width: 240px; transform: translateY(28px); }
}
.bb-onboard__lead{
  color: var(--aa-muted, var(--bb-muted));
  font-size: 14px;
  line-height: 1.55;
  max-width: 760px;
}
.bb-onboard__art{
  margin-top: 24px;
  max-width: 240px;
}

.bb-form--grid{ gap: 18px; }
.bb-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.bb-grid__col-12{ grid-column: span 12; }
.bb-grid__col-8{ grid-column: span 8; }
.bb-grid__col-6{ grid-column: span 6; }
.bb-grid__col-4{ grid-column: span 4; }

.bb-form__actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  margin-top: 8px;
}

.bb-drop__file{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.bb-drop{
  position: relative;
}
.bb-drop__box{
  border: 1px solid #A0ABBB;
  border-radius: 16px;
  padding: 18px;
  min-height: 128px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background: rgba(246,248,255,.55);
}
.bb-drop__plus{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(100,83,248,.12);
  color: var(--bb-purple);
  font-size: 26px;
  font-weight: 900;
}
.bb-drop__preview{
  display:none;
  width: 100%;
  height: 120px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.bb-drop.has-preview .bb-drop__plus{ display:none; }
.bb-drop.has-preview .bb-drop__preview{ display:block; }

/* City dropdown (like mini-app/job-form) */
.bb-dd{
  position: relative;
}
.bb-dd__header{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--aa-border, #E6E9F4);
  border-radius: 8px;
  padding: 0 14px;
  min-height: 44px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bb-dd__icons{
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}
/* стрелка как в mini-app register (Figma chevron), поворот при открытии */
.bb-dd__icons::before{
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 12px;
  height: 7px;
  background: url('/register/img/chevron_down_figma.svg') no-repeat center center / contain;
  opacity: 0.9;
  transform: rotate(180deg); /* по умолчанию вниз */
  transition: transform 120ms ease;
}
.bb-dd.is-open .bb-dd__icons::before{
  transform: rotate(0deg); /* при открытии вверх */
}
.bb-dd__header:focus{
  outline: none;
  border-color: var(--aa-primary, rgba(100,83,248,.85));
  box-shadow: 0 0 0 3px rgba(100,83,248,.12);
}
.bb-dd.is-open .bb-dd__header{
  border-color: var(--aa-primary, rgba(100,83,248,.85));
  box-shadow: 0 0 0 3px rgba(100,83,248,.12);
}
.bb-dd__text{
  font-family: "Plus Jakarta Sans", Inter, Gilroy, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--aa-text, #2A2A2A);
}
.bb-dd__text.is-placeholder{
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--aa-soft, rgba(160, 171, 187, 0.6));
}
.bb-dd__menu{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #FFFFFF;
  border: 1px solid var(--aa-border, #F2F4F7);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(38,44,71,.16);
  padding: 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 10;
  max-height: 140px;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.bb-dd__menu::-webkit-scrollbar{ width:0; height:0; }
.bb-dd.is-open .bb-dd__menu{ display:block; }
.bb-dd__item{
  display:flex;
  align-items:center;
  padding: 10px 14px;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", Inter, Gilroy, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--aa-text, #333333);
  user-select: none;
  position: relative;
  padding-right: 36px; /* резерв под чек */
}
.bb-dd__item:hover{ background: #F8FAFF; }
.bb-dd__item.selected{
  background: var(--aa-primary-30, #EAF3FC);
  color: var(--aa-primary, #6452FE);
}
/* чек как в mini-app (✓), показываем только на selected */
.bb-dd__item::after{
  content: "";
  width: 15px;
  height: 11px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: url('/register/img/check.svg') no-repeat center center / contain;
  opacity: 0;
}
.bb-dd__item.selected::after{ opacity: 1; }
.bb-dd.is-invalid .bb-dd__header{
  border-color: rgba(239,68,68,.95) !important;
  box-shadow: none !important;
}

/* Address suggestions (Yandex proxy) – used in company registration and cabinet */
.cc-addr-wrap{ position: relative; }
.cc-addr-suggest{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15,23,42,.12);
  z-index: 80;
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}
.cc-addr-suggest-item{
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
  color: rgba(15,23,42,.92);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.cc-addr-suggest-item:last-child{ border-bottom: 0; }
.cc-addr-suggest-item:hover{ background: #F8FAFF; }
.cc-addr-suggest-item .muted{ color: rgba(15,23,42,.55); font-weight: 600; }

/* Company registration: make city dropdown less "puffy" and match input height */
.bb-onboard #bbCityDropdown .bb-dd__header{
  padding: 14px 16px;
}
.bb-onboard #bbCityDropdown .bb-dd__text,
.bb-onboard #bbCityDropdown .bb-dd__text.is-placeholder{
  font-size: 16px;
  line-height: 20px;
}
.bb-onboard #bbCityDropdown .bb-dd__icons{
  width: 20px;
  height: 20px;
}
.bb-onboard #bbCityDropdown .bb-dd__icons::before{
  left: 4px;
  top: 7px;
}

@media (max-width: 980px){
  .bb-public-topbar{
    padding: 0 18px;
    flex-wrap: wrap;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .bb-public-topbar__actions{
    width: 100%;
    justify-content: space-between;
  }
  .bb-auth__grid{ grid-template-columns: 1fr; }
  .bb-auth__right{ order:-1; }
  .bb-auth__card{ padding: 32px 22px; }
  .bb-onboard__card{ grid-template-columns: 1fr; }
  .bb-steps{ border-right: 0; border-bottom: 1px solid rgba(15,23,42,.08); padding-right:0; padding-bottom: 14px; }
  .bb-grid__col-8,.bb-grid__col-6,.bb-grid__col-4{ grid-column: span 12; }
  .bb-form__actions{ flex-direction: column; align-items: stretch; }
}

.cc-support {
  display: grid;
  gap: 18px;
}

.cc-support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .95fr);
  gap: 18px;
}

.cc-support-hero__copy,
.cc-support-hero__summary,
.cc-support-card {
  background: #fff;
  border: 1px solid var(--aa-border, rgba(15,23,42,.08));
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--aa-shadow, 0 16px 30px rgba(17, 24, 39, 0.06));
}

.cc-support-eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(100, 82, 254, 0.1);
  color: #6452FE;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.cc-support-hero__title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  max-width: 720px;
}

.cc-support-hero__text {
  margin-top: 12px;
  color: #5b6479;
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
}

.cc-support-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cc-support-chip {
  border-radius: 999px;
  background: #f3f4ff;
  color: #4d42c7;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.cc-support-summary-card__label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cc-support-summary-card__list {
  margin: 0;
  padding-left: 18px;
  color: #5b6479;
  line-height: 1.65;
  font-size: 14px;
}

.cc-support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.cc-support-card--compose {
  padding: 24px;
}

.cc-support-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.cc-support-form,
.cc-support-reply {
  display: grid;
  gap: 12px;
}

.cc-support-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.cc-support-field {
  display: grid;
  gap: 6px;
}

.cc-support-field span,
.cc-support-thread-meta {
  color: #677188;
  font-size: 13px;
  line-height: 1.4;
}

.cc-support-field input,
.cc-support-field select,
.cc-support-field textarea,
.cc-support-reply textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9deea;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fbfcff;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cc-support-field input,
.cc-support-dd .bb-dd__header {
  min-height: 56px;
}

.cc-support-field input:focus,
.cc-support-field select:focus,
.cc-support-field textarea:focus,
.cc-support-reply textarea:focus {
  outline: none;
  border-color: rgba(100, 82, 254, 0.45);
  box-shadow: 0 0 0 4px rgba(100, 82, 254, 0.08);
  background: #fff;
}

.cc-support-field select[hidden] {
  display: none !important;
}

.cc-support-dd .bb-dd__menu {
  max-height: 220px;
}

.cc-support-dd .bb-dd__header {
  border-radius: 14px;
}

.cc-support-context-card {
  border: 1px solid #e4e8f3;
  border-radius: 16px;
  background: #fbfcff;
  min-height: 56px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.cc-support-context-card__label {
  font-size: 12px;
  font-weight: 700;
  color: #8a93a8;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cc-support-context-card__value {
  margin-top: 6px;
  color: #4f5970;
  line-height: 1.45;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-support-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cc-support-actions--hint {
  justify-content: flex-start;
  margin-top: -4px;
}

.cc-support-upload {
  display: inline-grid;
  gap: 8px;
  width: 220px;
  flex: 0 0 220px;
  min-width: 0;
}

.cc-support-upload input[type="file"] {
  display: none;
}

.cc-support-upload__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px dashed #cbd4e6;
  background: #f8faff;
  color: #5146ca;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cc-support-upload__hint {
  color: #768198;
  font-size: 13px;
  line-height: 1.45;
}

.cc-support-head,
.cc-support-thread-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cc-support-card--thread {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.cc-support-chat-wrap {
  display: grid;
  gap: 12px;
}

.cc-support-chat-heading {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
}

.cc-support-card--threads-collapsible {
  padding: 0;
  overflow: hidden;
}

.cc-support-threads-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 20px 24px;
  cursor: pointer;
  box-sizing: border-box;
}

.cc-support-threads-toggle .cc-support-card__title {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.cc-support-threads-toggle::-webkit-details-marker {
  display: none;
}

.cc-support-threads-toggle__hint {
  color: #6f7890;
  font-size: 13px;
  font-weight: 700;
}

.cc-support-threads-panel {
  padding: 0 24px 24px;
  border-top: 1px solid #eef1f8;
}

.cc-support-thread-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cc-support-thread-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cc-support-thread-header {
  align-items: flex-start;
  padding: 0 2px 12px;
  border-bottom: 1px solid #eef1f8;
  margin-bottom: 0;
}

.cc-support-thread-info {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.cc-support-thread-subtitle {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #222938;
}

.cc-support-thread-meta {
  margin-top: 4px;
}

.cc-support-btn--danger {
  background: linear-gradient(180deg, #ff6b6b 0%, #f04f4f 100%);
  color: #fff;
  border-color: transparent;
}

.cc-support-thread-actions .op-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  box-shadow: none;
}

.cc-support-thread-badge {
  border-radius: 999px;
  background: #f3f4ff;
  color: #5146ca;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.cc-support-thread-list,
.cc-support-messages {
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
}

.cc-support-thread-list {
  display: grid;
  align-content: start;
}

.cc-support-messages {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 14px;
  padding: 18px 18px 6px;
  background:
    radial-gradient(circle at top left, rgba(100, 82, 254, 0.04), transparent 22%),
    #f5f7fb;
  border: 1px solid #e8edf5;
  border-radius: 24px;
}

.cc-support-thread {
  display: block;
  width: 100%;
  border: 1px solid #e4e8f3;
  border-radius: 18px;
  padding: 14px;
  background: #fbfcff;
  cursor: pointer;
  text-align: left;
}

.cc-support-thread.is-active {
  border-color: #6452FE;
  box-shadow: 0 10px 24px rgba(100, 82, 254, 0.12);
}

.cc-support-thread__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.cc-support-thread__subject {
  font-size: 14px;
  font-weight: 700;
}

.cc-support-thread__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 8px;
}

.cc-support-thread__chip {
  border-radius: 999px;
  background: #eef1ff;
  color: #5a4fd8;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
}

.cc-support-thread__status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef0ff;
  color: #4d42c7;
  font-size: 11px;
  font-weight: 700;
}

.cc-support-thread__status--open {
  background: #eef2ff;
  color: #4f46e5;
}

.cc-support-thread__status--pending {
  background: #fff7d6;
  color: #a16207;
}

.cc-support-thread__status--resolved {
  background: #dcfce7;
  color: #15803d;
}

.cc-support-thread__status--closed,
.cc-support-thread__status--deleted {
  background: #fee2e2;
  color: #dc2626;
}

.cc-support-thread__preview {
  color: #5f687c;
  font-size: 13px;
  line-height: 1.4;
}

.cc-support-thread__meta {
  margin-top: 6px;
  color: #8a93a8;
  font-size: 12px;
}

.cc-support-card--thread .cc-support-reply {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e7ebf5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.cc-support-create-btn {
  width: 220px;
  flex: 0 0 220px;
  min-width: 220px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
}

.cc-support-send-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cc-support-upload__button:disabled,
.cc-support-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cc-support-card--thread .cc-support-reply input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #e3e8f4;
  border-radius: 14px;
  background: #f5f7fb;
  font: inherit;
  color: #1f2430;
  box-sizing: border-box;
}

.cc-support-card--thread .cc-support-reply input:focus {
  outline: none;
  border-color: rgba(100, 82, 254, 0.45);
  box-shadow: 0 0 0 4px rgba(100, 82, 254, 0.08);
  background: #fff;
}

.cc-support-reply__composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.cc-support-upload--reply {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-support-upload--reply .cc-support-upload__button {
  border-style: solid;
  background: #f4f1ff;
}

.cc-support-upload__button--icon {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 14px;
  color: #6452FE;
}

.cc-support-upload__hint--inline {
  font-size: 12px;
  font-weight: 700;
  color: #6a7288;
  display: none;
}

.cc-support-message-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(44%, 360px);
}

.cc-support-message-wrap--user {
  align-self: flex-end;
  align-items: flex-end;
}

.cc-support-message-wrap--agent {
  align-self: flex-start;
  align-items: flex-start;
}

.cc-support-message-wrap--system {
  align-self: center;
  align-items: center;
  width: min(64%, 520px);
  max-width: min(64%, 520px);
}

.cc-support-message {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  border-radius: 18px;
  padding: 10px 12px 9px;
  white-space: pre-wrap;
  line-height: 1.4;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.cc-support-message__title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  margin-bottom: 4px;
  opacity: 0.72;
}

.cc-support-message--user {
  align-items: flex-end;
  background: linear-gradient(180deg, #f1eeff 0%, #e7e1ff 100%);
  color: #2b2448;
  border: 1px solid rgba(135, 117, 255, 0.18);
  border-bottom-right-radius: 8px;
}

.cc-support-message--agent {
  background: #fff;
  color: #1f2430;
  border: 1px solid rgba(160, 171, 187, 0.18);
  border-bottom-left-radius: 8px;
}

.cc-support-message--system {
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  background: #f8fafd;
  color: #4f5970;
  border: 1px solid #dbe2f0;
  box-shadow: none;
  border-radius: 12px;
}

.cc-support-message__meta {
  font-size: 10px;
  opacity: 0.68;
  padding: 0 6px;
  line-height: 1.2;
  white-space: nowrap;
}

.cc-support-message-wrap--user .cc-support-message__meta {
  color: rgba(43, 36, 72, 0.62);
}

.cc-support-message-wrap--agent .cc-support-message__meta,
.cc-support-message-wrap--system .cc-support-message__meta {
  color: #7a8398;
}

.cc-support-message__attachments {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.cc-support-message__attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(100, 82, 254, 0.08);
  color: #2a2a2a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.cc-support-message__attachment:hover {
  background: rgba(100, 82, 254, 0.13);
}

.cc-support-message__actions {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.cc-support-message:hover .cc-support-message__actions {
  opacity: 1;
  pointer-events: auto;
}

.cc-support-message__delete {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.cc-support-message--user .cc-support-message__title,
.cc-support-message--user .cc-support-message__delete,
.cc-support-message--user .cc-support-message__meta {
  color: rgba(43, 36, 72, 0.62);
}

@media (max-width: 1360px) {
  .cc-support-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .cc-support-form__grid,
  .cc-support-grid {
    grid-template-columns: 1fr;
  }

  .cc-support-actions,
  .cc-support-thread-header {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-support-thread-badges {
    justify-content: flex-start;
  }

  .cc-support-thread-actions {
    justify-content: flex-start;
  }

  .cc-support-create-btn {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .cc-support-hero__title {
    font-size: 24px;
  }

  .cc-support-message {
    max-width: 82%;
  }

  .cc-support-message--system {
    width: 100%;
    max-width: 100%;
  }

  .cc-support-upload--reply {
    align-items: center;
  }

  .cc-support-reply__composer {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
  }

  .cc-support-upload__hint--inline {
    display: none;
  }

  .cc-support-card,
  .cc-support-hero__copy,
  .cc-support-hero__summary {
    padding: 18px;
  }
}


