/* Duxre auth dialog, themed like production: a port of
   components/common/auth/** (Login, ForgotPassword, VerificationCode,
   ResetPassword, CreateAccount + Register) with the property template's
   theme_modal_* / theme_input / theme_button overrides from property.css.
   Colours and fonts come from the :root --color-* / --font-* the theme writes.
   The Duxre wordmark and the LinkedIn mark are images and keep their colours.
   --color-slate is not defined by the theme (docs/components/modals.md); it
   falls back to black like it does in production. */

.duxre-auth {
  position: fixed;
  inset: 0;
  z-index: 51;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overscroll-behavior: none;
  background: #000000cc;
}
.duxre-auth[hidden],
.duxre-auth [hidden] {
  display: none !important;
}

/* ── card ─────────────────────────────────────────────────────────────── */
.duxre-auth__dialog {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 34px 20px;
  border-radius: 9px;
  background: var(--color-white, #fff);
  box-shadow: 0 4px 24px 9px rgba(0, 0, 0, 0.02);
  color: #000;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}
@media (min-width: 768px) {
  .duxre-auth__dialog {
    padding: 50px;
  }
}

/* Verification code: its own narrow card (VerificationCode.tsx). */
.duxre-auth[data-account-step='otp'] .duxre-auth__dialog,
.duxre-auth[data-account-step='mobile-otp'] .duxre-auth__dialog {
  max-width: 434px;
  padding: 34px 60px;
  border-radius: 9px;
}
@media (max-width: 767px) {
  .duxre-auth[data-account-step='otp'] .duxre-auth__dialog,
  .duxre-auth[data-account-step='mobile-otp'] .duxre-auth__dialog {
    padding: 34px 24px;
  }
}

/* Register (Contact Info, Criteria, Verify): the wide card
   (theme_create_new_account_container: square, left corners 9px). */
.duxre-auth[data-account-step='register-profile'] .duxre-auth__dialog {
  max-width: 1135px;
  max-height: 100%;
  padding: 0;
  border-radius: 0 0 0 9px;
}
@media (min-width: 768px) {
  .duxre-auth[data-account-step='register-profile'] .duxre-auth__dialog {
    border-radius: 9px 0 0 9px;
  }
}

.duxre-auth__close {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 1;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: #4b5563;
  line-height: 0;
  cursor: pointer;
  transition: color 0.15s;
}
.duxre-auth__close:hover {
  color: #000;
}
@media (min-width: 768px) {
  .duxre-auth__close {
    top: 26px;
    right: 34px;
  }
}

/* ── header (ModalHeader + theme_modal_header) ───────────────────────── */
.duxre-auth__header {
  margin-bottom: 30px;
}
.duxre-auth__dialog h3 {
  margin: 0;
  color: var(--color-slate, #000);
  font-family: var(--font-secondary);
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
}
.duxre-auth__header p {
  margin: 8px 0 0;
  color: var(--color-body);
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}
@media (min-width: 768px) {
  .duxre-auth__header p {
    margin-top: 16px;
  }
}

/* ── fields (EmailField / PasswordField / Label / getInputBaseStyles) ── */
.duxre-auth__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.duxre-auth__field--plain {
  gap: 0;
}
.duxre-auth__field--mb15 {
  margin-bottom: 6px;
}
.duxre-auth__field--mb2 {
  margin-bottom: 8px;
}
.duxre-auth__field--mb5 {
  margin-bottom: 20px;
}
.duxre-auth__field--mb7 {
  margin-bottom: 28px;
}
.duxre-auth label {
  display: block;
  margin: 8px 0 6px;
  color: var(--color-body);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0.25px;
}
.duxre-auth__field--plain label {
  margin-bottom: 14px;
}
@media (min-width: 768px) {
  .duxre-auth label {
    font-size: 16px;
    line-height: 16px;
  }
}
.duxre-auth label span {
  margin-left: 2px;
  color: var(--color-error);
  font-weight: 600;
}

.duxre-auth input:not([type='hidden']):not([type='checkbox']):not([type='radio']),
.duxre-auth select {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 0;
  outline: none;
  background: var(--color-white, #fff);
  color: var(--color-body);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.25px;
  transition: border-color 0.15s;
}
@media (min-width: 768px) {
  .duxre-auth input:not([type='hidden']):not([type='checkbox']):not([type='radio']),
  .duxre-auth select {
    height: 40px;
  }
}
.duxre-auth input:not([type='hidden']):not([type='checkbox']):not([type='radio']):focus,
.duxre-auth select:focus {
  border-color: var(--color-body);
}
.duxre-auth [data-invalid] {
  border-color: var(--color-error) !important;
}
.duxre-auth__error {
  color: var(--color-error);
  font-size: 14px;
  line-height: 20px;
}
.duxre-auth__error:empty {
  display: none;
}

.duxre-auth__password {
  position: relative;
}
.duxre-auth__password input {
  padding-right: 40px !important;
}
.duxre-auth__eye {
  position: absolute;
  top: 50%;
  right: 12px;
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-placeholder);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.15s;
}
.duxre-auth__eye:hover {
  color: var(--color-body);
}
.duxre-auth__eye svg {
  display: block;
  width: 20px;
  height: 20px;
}
.duxre-auth__eye-on,
.duxre-auth__password:has(input[type='text']) .duxre-auth__eye-off {
  display: none !important;
}
.duxre-auth__password:has(input[type='text']) .duxre-auth__eye-on {
  display: block !important;
}

/* ── text buttons (Button variant="text": uppercase via theme_button) ── */
.duxre-auth__text {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}
.duxre-auth__text:hover {
  color: var(--color-button-text-hover-text, var(--color-primary));
}
.duxre-auth__text--lead {
  font-size: 16px;
  line-height: 20px;
}
.duxre-auth__text--inline {
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
}
.duxre-auth__text--resend {
  font-size: 16px;
  line-height: 32px;
}

.duxre-auth__forgot {
  margin-bottom: 28px;
  color: var(--color-body);
  font-size: 14px;
  line-height: 20px;
}

.duxre-auth__message {
  margin: -8px 0 20px;
  color: var(--color-error);
  font-size: 16px;
  line-height: 20px;
}
.duxre-auth__message:empty {
  display: none;
}
.duxre-auth__message--success {
  color: var(--color-success, #15803d);
}

/* ── buttons (Button primary / outline + theme_button) ─────────────────── */
.duxre-auth__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 6px 40px;
  border: 0;
  border-radius: 0;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 32px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.duxre-auth__btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.duxre-auth__btn--primary {
  background: var(--color-primary);
  color: var(--color-white, #fff);
}
.duxre-auth__btn--primary:not(:disabled):hover {
  background: var(--color-primary-light);
  color: var(--color-button-primary-hover-text, #000);
}
.duxre-auth__btn--primary:not(:disabled):focus-visible,
.duxre-auth__btn--primary:not(:disabled):active {
  background: var(--color-primary-dark);
}
.duxre-auth__btn--outline {
  border: 1px solid var(--color-slate, #000);
  background: var(--color-white, #fff);
  color: var(--color-slate, #000);
}
.duxre-auth__btn--outline:not(:disabled):hover {
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}
.duxre-auth__btn--block {
  display: flex;
  width: 100%;
}
.duxre-auth__btn--mb2 {
  margin-bottom: 8px;
}
.duxre-auth__btn--md {
  font-size: 16px;
}
.duxre-auth__btn--lg {
  padding: 12px 24px;
  line-height: 20px;
}
.duxre-auth__btn--wide {
  padding-right: 72px;
  padding-left: 72px;
  font-size: 16px;
}

.duxre-auth__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.duxre-auth__actions .duxre-auth__btn {
  width: 100%;
}
@media (min-width: 768px) {
  .duxre-auth__actions {
    flex-direction: row;
    justify-content: flex-end;
  }
  .duxre-auth__actions .duxre-auth__btn {
    width: auto;
  }
}

/* ── divider, LinkedIn ─────────────────────────────────────────────────── */
.duxre-auth__divider {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 36px 0 26px;
}
.duxre-auth__divider::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 1px solid var(--color-line);
}
.duxre-auth__divider span {
  position: relative;
  padding: 0 16px;
  background: var(--color-white, #fff);
  color: var(--color-placeholder);
  font-size: 14px;
  line-height: 20px;
}
.duxre-auth__linkedin {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 36px;
}
/* The LinkedIn mark in LinkedIn blue, primary-dark on hover (LinkedInLogin). */
.duxre-auth__linkedin svg {
  display: block;
  width: 34px;
  height: 34px;
  fill: #006bb6;
  transition: fill 0.15s;
}
.duxre-auth__linkedin:hover svg {
  fill: var(--color-primary-dark);
}

/* ── one card (Figma "Duxre Platform Updates", 2026-10) ───────────────────
   Login, Forgot password, Reset password and Create New Account share the
   560px card: the site logo on top (page.js), then 24 / 20 / 16 between the groups,
   so the dialog does not jump between these steps. OTP, Register and the
   deal-flow prompt keep their own layout. */
.duxre-auth__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 50px;
  margin: 0 0 24px;
  object-fit: contain;
}
/* A light logo (drawn for a dark header): its shape in the header colour. */
.duxre-auth__logo--mask {
  width: fit-content;
  max-width: none;
  max-height: none;
  background: var(--logo-color);
  -webkit-mask: var(--logo-url) center / contain no-repeat;
  mask: var(--logo-url) center / contain no-repeat;
}
.duxre-auth__logo--mask img {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 50px;
  opacity: 0;
}
/* No logo file: the property name. */
.duxre-auth__logo--text {
  max-width: none;
  max-height: none;
  color: var(--color-slate, #000);
  font-family: var(--font-heading, var(--font-secondary));
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
}
.duxre-auth__panel--card .duxre-auth__header {
  margin-bottom: 24px;
}
.duxre-auth__panel--card .duxre-auth__header p {
  margin-top: 15px;
}
.duxre-auth__panel--card .duxre-auth__field,
.duxre-auth__panel--card .duxre-auth__field--plain {
  gap: 14px;
  margin: 0 0 20px;
}
.duxre-auth__panel--card label,
.duxre-auth__panel--card .duxre-auth__field--plain label {
  margin: 0;
}
.duxre-auth__panel--card .duxre-auth__field .duxre-auth__error,
.duxre-auth__panel--card .duxre-auth__prompt {
  margin-top: -6px;
}
.duxre-auth__panel--card .duxre-auth__field:has(+ .duxre-auth__forgot) {
  margin-bottom: 8px;
}
.duxre-auth__panel--card .duxre-auth__forgot {
  margin-bottom: 20px;
}
.duxre-auth__panel--card .duxre-auth__forgot .duxre-auth__text {
  text-transform: none;
}
.duxre-auth__panel--card .duxre-auth__btn--mb2 {
  margin-bottom: 16px;
}
.duxre-auth__panel--card .duxre-auth__btn--outline {
  padding-top: 5px;
  padding-bottom: 5px;
}
.duxre-auth__panel--card .duxre-auth__divider {
  margin: 24px 0 20px;
}
.duxre-auth__panel--card .duxre-auth__terms {
  margin-top: 24px;
  text-align: center;
}
.duxre-auth__panel--card .duxre-auth__terms + .duxre-auth__divider {
  margin-top: 20px;
}
.duxre-auth__panel--card .duxre-auth__linkedin--full {
  margin: 0;
}
.duxre-auth__panel--card .duxre-auth__switch {
  margin-top: 20px;
}

/* ── verification code ─────────────────────────────────────────────────── */
.duxre-auth__panel--otp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.duxre-auth__otp-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 280px;
  max-width: 100%;
}
.duxre-auth__otp-head h3 {
  text-align: center;
  font-family: var(--font-main) !important;
  font-weight: 600 !important;
}
.duxre-auth__otp-head p {
  margin: 0;
  color: var(--color-body);
  text-align: center;
  font-size: 16px;
  line-height: 19px;
}
.duxre-auth__otp-head strong {
  display: inline-block;
  max-width: 100%;
  font-weight: 600;
  vertical-align: bottom;
  word-break: break-all;
}
.duxre-auth__otp-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.duxre-auth__otp {
  display: flex;
  gap: 10px;
}
.duxre-auth .duxre-auth__otp input:not([type='hidden']) {
  width: 44px;
  height: 44px;
  padding: 13px 12px;
  text-align: center;
  letter-spacing: -0.182px;
}
.duxre-auth__otp + .duxre-auth__message,
.duxre-auth__resend .duxre-auth__message {
  margin: 4px 0 0;
  font-size: 14px;
}
.duxre-auth__resend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  color: var(--color-body);
  font-size: 16px;
}
.duxre-auth__resend p {
  margin: 0;
  line-height: 19px;
}
.duxre-auth__resend .duxre-auth__message {
  flex-basis: 100%;
}
.duxre-auth__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.duxre-auth__stack .duxre-auth__btn {
  height: 43px;
  padding: 0 45px;
}

/* ── create new account (step 1) ───────────────────────────────────────── */
.duxre-auth__terms {
  margin: 12px 0 0;
  color: var(--color-placeholder);
  font-size: 14px;
  line-height: 20px;
}
.duxre-auth__terms a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ── create new account (step 2, Register) ─────────────────────────────── */
.duxre-auth__panel--profile {
  box-sizing: border-box;
  width: 100%;
  padding: 24px 16px;
}
@media (min-width: 768px) {
  .duxre-auth__panel--profile {
    padding: 34px;
  }
}
.duxre-auth__stepper {
  position: relative;
}
.duxre-auth__stepper-line {
  position: absolute;
  top: 6px;
  right: 0;
  left: 0;
  height: 2px;
  background: color-mix(in srgb, var(--color-primary) 25%, transparent);
}
.duxre-auth__stepper-line > b {
  display: block;
  height: 100%;
  background: var(--color-primary);
}
.duxre-auth__stepper-steps {
  position: relative;
  display: flex;
  justify-content: space-around;
}
.duxre-auth__stepper-steps > div {
  /* Equal columns: each circle sits at the middle of its share, where the line fill stops. */
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.duxre-auth__stepper-steps i {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-primary);
  border-radius: 9999px;
  background: var(--color-white, #fff);
  color: var(--color-white, #fff);
}
.duxre-auth__stepper-steps .is-active i {
  background: var(--color-primary);
}
.duxre-auth__stepper-steps span {
  margin-top: 12px;
  color: color-mix(in srgb, var(--color-label) 77%, transparent);
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}
.duxre-auth__stepper-steps .is-current span {
  color: var(--color-black);
}
.duxre-auth__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 12px 16px;
  margin-top: 32px;
}
.duxre-auth__grid .duxre-auth__field {
  min-width: 0;
}
@media (min-width: 768px) {
  .duxre-auth__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .duxre-auth__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.duxre-auth__panel--profile .duxre-auth__message {
  margin: 16px 0 0;
}
.duxre-auth__complete {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

/* ── CCS-292: sign-up and sign-in (register.js) ────────────────────────────
   Create New Account checks the email only; Register (Contact Info, then
   Acquisition Criteria / Space Needs), Verify, the SMS sign-in step and the
   deal-flow prompt follow datum_child_next design/CCS-292. */

/* LinkedInLogin fullWidth: an outlined bar with the mark and LINKEDIN. */
.duxre-auth__linkedin--full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 36px 0 0;
  border: 1px solid var(--color-slate, #000);
  border-radius: 6px;
  background: var(--color-white, #fff);
  color: var(--color-slate, #000);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.duxre-auth__linkedin--full:hover {
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}
.duxre-auth__linkedin--full svg {
  width: 20px;
  height: 20px;
}
/* Plain underlined actions ("Forgot password?", "Log in"). */
.duxre-auth__link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.duxre-auth__prompt {
  margin: 0;
  color: var(--color-placeholder);
  font-size: 14px;
  line-height: 20px;
}
.duxre-auth__switch {
  margin: 0;
  color: var(--color-placeholder);
  text-align: center;
  font-size: 14px;
  line-height: 20px;
}
.duxre-auth__message--error {
  margin: 0;
  font-size: 14px;
}
.duxre-auth__otp-dest {
  font-weight: 600;
  line-height: 32px !important;
}
.duxre-auth__countdown {
  color: var(--color-primary);
  font-size: 16px;
  line-height: 32px;
  font-weight: 600;
}
.duxre-auth .duxre-auth__otp.is-error input {
  border-color: var(--color-error);
}
.duxre-auth .duxre-auth__otp input:disabled {
  background: #efefef;
  cursor: not-allowed;
}
.duxre-auth__spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  border: 3px solid var(--color-line);
  border-top-color: var(--color-primary);
  border-radius: 9999px;
  animation: duxre-auth-spin 0.8s linear infinite;
}
@keyframes duxre-auth-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Register ─────────────────────────────────────────────────────────── */
.duxre-auth__panel--profile {
  position: relative;
}
.duxre-reg__header {
  margin-bottom: 8px;
}
.duxre-reg__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.duxre-reg__busy {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
}
.duxre-reg__api-error {
  max-width: 537px;
  margin: 20px 0;
  font-size: 16px;
}
.duxre-reg__grid {
  align-items: start;
}
.duxre-reg__field {
  gap: 6px;
}
.duxre-reg__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}
.duxre-auth .duxre-reg__label-row label {
  min-width: 0;
  margin: 0;
  line-height: 20px;
}
.duxre-reg__err {
  color: var(--color-error);
  font-size: 14px;
  line-height: 20px;
}
/* Label.tsx labelSuffix: grey, not the red asterisk style of `label span` */
.duxre-auth label .duxre-reg__optional {
  margin-left: 0;
  color: var(--color-placeholder);
  font-weight: 400;
}
.duxre-reg__err:empty {
  display: none;
}
/* Same weight as the base field rule (its :not()s), or the white background wins:
   disabled fields grey out as in the Child app (Not applicable, phones before a role). */
.duxre-auth .duxre-reg__field input:not([type='hidden']):not([type='checkbox']):not([type='radio']):disabled,
.duxre-auth .duxre-reg__field select:disabled {
  background: #efefef;
  cursor: not-allowed;
}
.duxre-reg__prompt {
  margin: 0;
  color: var(--color-placeholder);
  font-size: 14px;
  line-height: 20px;
}
/* "Not with a company?" / "With a company?": grey like the prompts (Register.tsx) */
.duxre-reg__prompt--link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-placeholder);
  text-align: left;
  font-family: var(--font-main);
  text-decoration: underline;
  cursor: pointer;
}
.duxre-reg__prompt--link:hover {
  color: var(--color-primary);
}
.duxre-reg__combo {
  position: relative;
}
.duxre-reg__options {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  box-sizing: border-box;
  width: 100%;
  max-height: 240px;
  margin-top: 4px;
  padding: 4px 0;
  overflow: auto;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--color-white, #fff);
  box-shadow: 0 6px 6px 0 rgba(0, 0, 0, 0.1);
}
.duxre-reg__options button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--color-body);
  text-align: left;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
.duxre-reg__options button:hover,
.duxre-reg__options button:focus-visible {
  background: var(--color-hover-light, #f3f4f6);
}

/* Acquisition Criteria / Space Needs */
.duxre-reg__exchange-field {
  margin: 24px 0 12px;
}
.duxre-reg__exchange-field > .duxre-reg__err:not(:empty) {
  display: block;
  margin-top: 4px;
}
.duxre-reg__exchange {
  display: flex;
  flex-direction: column;
  gap: 8px 20px;
  width: fit-content;
  max-width: 100%;
}
@media (min-width: 768px) {
  .duxre-reg__exchange {
    flex-direction: row;
    align-items: center;
  }
}
.duxre-reg__label-row--inline {
  justify-content: flex-start;
  gap: 16px;
}
.duxre-reg__radios {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 40px;
}
@media (min-width: 768px) {
  .duxre-reg__radios {
    flex-direction: row;
    align-items: center;
  }
}
.duxre-auth .duxre-reg__radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--color-body);
  font-size: 16px;
  line-height: 20px;
  cursor: pointer;
}
.duxre-auth .duxre-reg__radio input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.duxre-reg__criteria {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 1024px) {
  .duxre-reg__criteria {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 253px);
    align-items: start;
  }
  .duxre-reg__criteria-cell {
    grid-row: var(--reg-row);
    grid-column: var(--reg-col);
  }
  .duxre-reg__criteria.has-tall [data-location-cell] {
    grid-row: 1 / span 2;
  }
}
.duxre-auth .duxre-reg__tree > label {
  margin: 0 0 6px;
}
.duxre-reg__tree-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--color-input-border, var(--color-line));
  border-radius: 6px;
  background: var(--color-white, #fff);
  color: var(--color-body);
  text-align: left;
  font-family: var(--font-main);
  font-size: 16px;
  cursor: pointer;
}
.duxre-reg__tree-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.duxre-reg__tree-trigger .is-placeholder {
  color: var(--color-input-placeholder, var(--color-placeholder));
}
.duxre-reg__tree.is-open .duxre-reg__tree-trigger svg {
  transform: rotate(180deg);
}
.duxre-reg__tree-panel {
  display: none;
  flex-direction: column;
  box-sizing: border-box;
  max-height: 320px;
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-white, #fff);
}
.duxre-reg__tree.is-open .duxre-reg__tree-panel {
  display: flex;
}
@media (min-width: 1024px) {
  .duxre-reg__tree-trigger {
    display: none;
  }
  .duxre-reg__tree-panel,
  .duxre-reg__tree.is-open .duxre-reg__tree-panel {
    display: flex;
    height: 225px;
    max-height: 225px;
    margin-top: 0;
  }
  .duxre-reg__tree.is-tall .duxre-reg__tree-panel {
    height: 498px;
    max-height: 498px;
  }
}
.duxre-reg__tree-search {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  margin: 12px 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-input-border, var(--color-line));
  color: var(--color-border, var(--color-placeholder));
}
.duxre-reg__tree-search svg {
  position: absolute;
  left: 0;
}
.duxre-auth .duxre-reg__tree-search input[data-tree-search][type='text'] {
  height: auto;
  padding: 4px 8px 4px 24px;
  border: 0;
  background: transparent;
  font-weight: 400;
}
.duxre-reg__tree-list {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}
.duxre-reg__tree-item {
  margin-bottom: 12px;
}
.duxre-reg__tree-item:last-child {
  margin-bottom: 0;
}
.duxre-reg__tree-row {
  display: flex;
  align-items: center;
  width: 100%;
}
/* TreeSelector.tsx: the separated "All …" row sits above the scrolling list. */
.duxre-reg__tree-all {
  flex: none;
  padding: 12px 12px 0;
}
.duxre-reg__tree-row.is-all {
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-input-border, var(--color-line));
}
.duxre-reg__tree-children {
  margin: 12px 0 0 28px;
}
.duxre-reg__tree-expand {
  display: flex;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-body);
  cursor: pointer;
}
.duxre-reg__check {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.duxre-auth .duxre-reg__check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.duxre-auth .duxre-reg__check label {
  min-width: 0;
  margin: 0 0 0 8px;
  color: var(--color-body);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
.duxre-reg__optin {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 537px;
  margin-top: 20px;
}
.duxre-reg__tip {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  color: var(--color-body);
  cursor: help;
}
.duxre-reg__tip-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 40;
  box-sizing: border-box;
  width: min(575px, 80vw);
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--color-black, #111);
  color: var(--color-white, #fff);
  font-size: 14px;
  line-height: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.15s;
}
.duxre-reg__tip:hover .duxre-reg__tip-text,
.duxre-reg__tip:focus .duxre-reg__tip-text {
  opacity: 1;
}
.duxre-reg__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.duxre-reg__actions .duxre-auth__btn {
  width: 100%;
}
.duxre-reg__actions-group {
  display: flex;
  gap: 12px;
}
@media (min-width: 768px) {
  .duxre-reg__actions {
    flex-direction: row;
    justify-content: space-between;
  }
  .duxre-reg__actions .duxre-auth__btn {
    width: auto;
  }
}

/* Verify (Congratulations.tsx) */
.duxre-reg__congrats {
  box-sizing: border-box;
  max-width: 480px;
  margin: 60px auto;
  padding: 24px 16px;
}
.duxre-reg__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.duxre-reg__block--rule {
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
}
.duxre-reg__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-label);
}
.duxre-reg__title h4 {
  margin: 0;
  color: var(--color-black);
  font-family: var(--font-main);
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}
.duxre-reg__text,
.duxre-reg__lead {
  margin: 0;
  color: var(--color-body);
  font-size: 16px;
  line-height: 20px;
}
.duxre-reg__text strong,
.duxre-reg__dest {
  font-weight: 600;
  line-height: 32px;
}
.duxre-reg__dest {
  margin: 4px 0 0;
  color: var(--color-body);
}
.duxre-reg__list {
  margin: 0 0 0 24px;
  padding: 0;
  color: var(--color-body);
  list-style: disc inside;
  font-size: 16px;
  line-height: 20px;
}
.duxre-reg__list li + li {
  margin-top: 6px;
}
.duxre-reg__status {
  margin-bottom: 24px;
  color: #16a34a;
  font-size: 14px;
  font-weight: 500;
}
.duxre-reg__status.is-error {
  color: var(--color-error);
}
.duxre-reg__congrats-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) {
  .duxre-reg__congrats-actions {
    flex-direction: row;
    justify-content: center;
  }
}
.duxre-reg__btn-strong {
  height: 44px;
  border: 2px solid var(--color-black, #000);
  color: var(--color-black, #000);
}
.duxre-reg__sms {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.duxre-reg__sms .duxre-auth__resend {
  margin-top: 8px;
}
.duxre-reg__change {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── deal flow (DealFlowOptInModal.tsx) ───────────────────────────────── */
.duxre-dealflow {
  position: fixed;
  inset: 0;
  z-index: 52;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
}
.duxre-dealflow__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  box-sizing: border-box;
  width: 100%;
  max-width: 657px;
  padding: 30px 20px;
  border-radius: 8px;
  background: var(--color-white, #fff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  font-family: var(--font-main);
}
@media (min-width: 768px) {
  .duxre-dealflow__card {
    padding: 30px 60px;
  }
}
.duxre-dealflow__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-deal-team-name, var(--color-slate, #000));
  cursor: pointer;
}
.duxre-dealflow__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 537px;
  color: var(--color-deal-team-name, var(--color-slate, #000));
  text-align: center;
}
.duxre-dealflow__body h2 {
  max-width: 403px;
  margin: 0;
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
}
.duxre-dealflow__body p {
  margin: -10px 0 0;
  color: var(--color-body);
  font-size: 16px;
  line-height: 19px;
}
.duxre-dealflow__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.duxre-dealflow__btn {
  height: 43px;
  padding: 0 40px;
  border-radius: 5px;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 32px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
}
.duxre-dealflow__btn--outline {
  border: 2px solid var(--color-deal-team-name, var(--color-slate, #000));
  background: var(--color-white, #fff);
  color: var(--color-deal-team-name, var(--color-slate, #000));
}
.duxre-dealflow__btn--outline:hover {
  opacity: 0.8;
}
.duxre-dealflow__btn--primary {
  border: 0;
  background: var(--color-primary);
  color: var(--color-white, #fff);
}
.duxre-dealflow__btn--primary:hover {
  background: var(--color-primary-light);
}

/* ── toasts (useToast) ────────────────────────────────────────────────── */
.duxre-toasts {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}
.duxre-toast {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-left: 4px solid var(--color-primary);
  border-radius: 4px;
  background: var(--color-white, #fff);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  color: var(--color-body);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 20px;
}
.duxre-toast strong {
  color: var(--color-black, #000);
  font-weight: 600;
}
.duxre-toast--success {
  border-left-color: #16a34a;
}

/* ── Marketplace/Figma type in the auth modals (Child app authModalStyles.ts,
   AUTH_MODAL_STYLES + AUTH_DROPDOWN_STYLES). DM Sans comes with every page's
   Google Fonts link (theme.js); the rest of the site keeps its own fonts. ── */
.duxre-auth input:not([type='hidden']):not([type='checkbox']):not([type='radio']),
.duxre-auth select {
  font-family: 'DM Sans', var(--font-main);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0.015625rem;
}
.duxre-auth__prompt,
.duxre-reg__prompt {
  font-family: 'DM Sans', var(--font-main);
  line-height: 20px;
  letter-spacing: 0.015625rem;
}
.duxre-auth label {
  letter-spacing: normal;
}
.duxre-auth__header p,
.duxre-auth__panel--card .duxre-auth__header p {
  font-family: 'DM Sans', var(--font-main);
  line-height: 24px;
  letter-spacing: 0.015625rem;
}
@media (min-width: 768px) {
  .duxre-auth__header p,
  .duxre-auth__panel--card .duxre-auth__header p {
    margin-top: 12px;
  }
}
.duxre-auth__close {
  top: 18px;
  right: 18px;
}
.duxre-reg__options *,
.duxre-reg__tree-panel * {
  font-family: 'DM Sans', var(--font-main);
  font-weight: 400;
  letter-spacing: 0.015625rem;
}
.duxre-reg__tree-search input {
  font-size: 14px;
  line-height: 20px;
}
