/* Sapien responsive registration + assistant polish, release QA 2026-11-27 */
:root {
  --rs-safe-top: max(env(safe-area-inset-top), 0px);
  --rs-safe-right: max(env(safe-area-inset-right), 0px);
  --rs-safe-bottom: max(env(safe-area-inset-bottom), 0px);
  --rs-safe-left: max(env(safe-area-inset-left), 0px);
  --rs-accent: #E06B63;
  --rs-accent-soft: rgba(255, 60, 0, .16);
  --rs-panel-bg: #101113;
}

/* Registration dialog: one spacing rhythm, scroll-safe when the keyboard opens. */
html body #auth-modal[hidden],
html body #wizard[hidden],
html body #notification-welcome[hidden] { display: none !important; }
html body #auth-modal:not([hidden]) {
  box-sizing: border-box !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 1400 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  place-items: center !important;
  align-content: center !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: calc(20px + var(--rs-safe-top)) calc(20px + var(--rs-safe-right)) calc(20px + var(--rs-safe-bottom)) calc(20px + var(--rs-safe-left)) !important;
  background: rgba(3, 5, 7, .84) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.12) !important;
  backdrop-filter: blur(20px) saturate(1.12) !important;
}
html body #auth-modal:not([hidden]) .auth-intro { display: none !important; }
html body #auth-modal:not([hidden]) .auth-card {
  box-sizing: border-box !important;
  width: min(100%, 480px) !important;
  min-width: 0 !important;
  max-width: 480px !important;
  max-height: calc(100dvh - 28px - var(--rs-safe-top) - var(--rs-safe-bottom)) !important;
  height: auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
  margin: auto !important;
  padding: clamp(22px, 3.2vw, 34px) clamp(18px, 4vw, 36px) !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  border-radius: clamp(19px, 2.4vw, 26px) !important;
  background:
    radial-gradient(ellipse at 92% 0, rgba(222, 98, 89, .14), transparent 44%),
    linear-gradient(150deg, rgba(20, 22, 25, .99), rgba(8, 10, 12, .99)) !important;
  box-shadow: 0 30px 110px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255,255,255,.018) inset !important;
  color: #f3f5f7 !important;
  line-height: 1.45 !important;
}
html body #auth-modal .auth-card > .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #b5c1c8 !important;
  font-size: .68rem !important;
  font-weight: 760 !important;
  letter-spacing: .15em !important;
}
html body #auth-modal .auth-card > .eyebrow::before {
  content: "" !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--rs-accent) !important;
  box-shadow: 0 0 12px rgba(255, 60, 0,.5) !important;
}
html body #auth-modal .auth-card h2 {
  margin: 11px 0 5px !important;
  color: #f7f8f9 !important;
  font-size: clamp(1.55rem, 4.4vw, 2rem) !important;
  font-weight: 780 !important;
  letter-spacing: -.045em !important;
  line-height: 1.12 !important;
  text-wrap: balance !important;
}
html body #auth-modal .auth-card > p {
  margin: 0 0 18px !important;
  color: #aeb6bd !important;
  font-size: .9rem !important;
  line-height: 1.5 !important;
}
html body #auth-modal .auth-google {
  box-sizing: border-box !important;
  min-height: 50px !important;
  margin: 10px 0 0 !important;
  padding: 10px 14px !important;
  border-radius: 13px !important;
  font-size: .88rem !important;
  font-weight: 720 !important;
  line-height: 1.25 !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}
html body #auth-modal .auth-google:hover { transform: translateY(-1px) !important; box-shadow: 0 9px 24px rgba(0,0,0,.24) !important; }
html body #auth-modal .auth-divider {
  min-height: 20px !important;
  gap: 12px !important;
  margin: 17px 0 15px !important;
  color: #9ba4aa !important;
  font-size: .76rem !important;
  line-height: 1.35 !important;
}
html body #auth-modal .auth-email-panel,
html body #auth-modal .email-box {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  min-width: 0 !important;
}
html body #auth-modal .email-box label {
  margin: 3px 0 0 !important;
  color: #e4e7e9 !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
html body #auth-modal .email-box input {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 50px !important;
  height: 50px !important;
  margin: 0 0 3px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 12px !important;
  background: rgba(0,0,0,.30) !important;
  color: #f4f6f7 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
html body #auth-modal .email-box input::placeholder { color: #7f878e !important; opacity: 1 !important; }
html body #auth-modal .email-box input:focus-visible {
  outline: 2px solid rgba(255, 60, 0,.82) !important;
  outline-offset: 2px !important;
  border-color: rgba(228,128,120,.72) !important;
}
html body #auth-modal .email-submit {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 51px !important;
  height: auto !important;
  margin: 8px 0 0 !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(231,139,132,.2) !important;
  border-radius: 13px !important;
  background: linear-gradient(100deg, #C44940, #A54A44) !important;
  color: #fff !important;
  font-size: .9rem !important;
  font-weight: 780 !important;
  line-height: 1.25 !important;
  box-shadow: 0 8px 22px rgba(160,64,57,.18) !important;
}
html body #auth-modal .auth-switch {
  box-sizing: border-box !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px 12px !important;
  margin: 17px 0 4px !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  color: #b7bec3 !important;
  font-size: .8rem !important;
  line-height: 1.35 !important;
}
html body #auth-modal .auth-switch button,
html body #auth-modal .auth-forgot,
html body #auth-modal #auth-resend-confirmation {
  min-height: 38px !important;
  padding: 7px 9px !important;
  border-radius: 9px !important;
  color: #EEADA8 !important;
  font-size: .8rem !important;
  line-height: 1.3 !important;
  text-underline-offset: 3px !important;
}
html body #auth-modal .auth-forgot { margin: 4px 0 !important; }
html body #auth-modal .email-status {
  margin: 10px 0 0 !important;
  color: #d8dfe3 !important;
  font-size: .82rem !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere !important;
}
html body #auth-modal :focus-visible,
html body #wizard :focus-visible,
html body #notification-welcome :focus-visible {
  outline: 2px solid rgba(229,130,123,.9) !important;
  outline-offset: 3px !important;
}

/* Onboarding wizard: consistent gutters, scrollable sector list, anchored actions. */
html body #wizard.open:not([hidden]) {
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: calc(18px + var(--rs-safe-top)) calc(18px + var(--rs-safe-right)) calc(18px + var(--rs-safe-bottom)) calc(18px + var(--rs-safe-left)) !important;
}
html body #wizard .wizard-card {
  box-sizing: border-box !important;
  width: min(100%, 660px) !important;
  max-width: 660px !important;
  max-height: calc(100dvh - 36px - var(--rs-safe-top) - var(--rs-safe-bottom)) !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
  border-radius: 24px !important;
}
html body #wizard .wizard-top { margin-bottom: clamp(16px, 3.5vh, 30px) !important; }
html body #wizard .wizard-inner { min-width: 0 !important; }
html body #wizard .step h2 { line-height: 1.18 !important; text-wrap: balance !important; }
html body #wizard .text-input { box-sizing: border-box !important; width: 100% !important; min-width: 0 !important; min-height: 52px !important; font-size: 16px !important; }
html body #wizard .sectors { min-width: 0 !important; }
html body #wizard .sector { min-width: 0 !important; }
html body #wizard .sector b,
html body #wizard .sector small { overflow-wrap: anywhere !important; }
html body #wizard .wizard-nav { z-index: 4 !important; }
html body #wizard .wizard-nav button { min-height: 48px !important; }

/* Sapien IA rail item: visible, alive, restrained, and still the existing assistant. */
html body .app #app-rail nav.drawer-module-links > a.sapien-assistant-nav[data-view="mural"] {
  position: relative !important;
  isolation: isolate !important;
  min-height: 54px !important;
  gap: 12px !important;
  padding: 9px 11px !important;
  overflow: visible !important;
  border: 1px solid rgba(228, 124, 116, .16) !important;
  border-radius: 15px !important;
  background: linear-gradient(105deg, rgba(255, 60, 0, .105), rgba(255,255,255,.018) 74%) !important;
  box-shadow: 0 7px 22px rgba(0,0,0,.13), inset 0 1px rgba(255,255,255,.035) !important;
  color: #fff !important;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
html body .app #app-rail nav.drawer-module-links > a.sapien-assistant-nav[data-view="mural"]:hover,
html body .app #app-rail nav.drawer-module-links > a.sapien-assistant-nav[data-view="mural"]:focus-visible {
  border-color: rgba(229, 132, 125, .42) !important;
  background: linear-gradient(105deg, rgba(255, 60, 0, .17), rgba(255,255,255,.035) 76%) !important;
  box-shadow: 0 9px 26px rgba(0,0,0,.2), 0 0 18px rgba(255, 60, 0,.08) !important;
  transform: translateY(-1px) !important;
}
html body .app #app-rail nav.drawer-module-links > a.sapien-assistant-nav[data-view="mural"] .nav-icon {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
  background: radial-gradient(circle at 35% 28%, rgba(234,155,150,.18), rgba(222,98,90,.075) 52%, rgba(10,12,14,.44)) !important;
  box-shadow: inset 0 0 0 1px rgba(233,150,144,.19), 0 0 16px rgba(223,101,92,.11) !important;
}
html body .app #app-rail nav.drawer-module-links > a.sapien-assistant-nav[data-view="mural"] .nav-icon img {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  filter: drop-shadow(0 0 6px rgba(255, 60, 0,.48)) saturate(1.12) !important;
  animation: rs-ai-mark-breathe 4.8s ease-in-out infinite !important;
}
html body .app #app-rail nav.drawer-module-links > a.sapien-assistant-nav[data-view="mural"] > .nav-label {
  flex: 1 1 auto !important;
  color: #F5D0CE !important;
  -webkit-text-fill-color: #F5D0CE !important;
  font-size: .78rem !important;
  font-weight: 780 !important;
  letter-spacing: .065em !important;
  line-height: 1.2 !important;
}
html body .app #app-rail nav.drawer-module-links > a.sapien-assistant-nav[data-view="mural"]::after {
  content: "AGENTE" !important;
  flex: 0 0 auto !important;
  padding: 4px 6px !important;
  border: 1px solid rgba(255, 60, 0,.2) !important;
  border-radius: 999px !important;
  background: rgba(255, 60, 0,.075) !important;
  color: #DB9D99 !important;
  font-size: .52rem !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
  line-height: 1 !important;
}
@keyframes rs-ai-mark-breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255, 60, 0,.34)) saturate(1.05); }
  50% { transform: scale(1.055); filter: drop-shadow(0 0 8px rgba(255, 60, 0,.6)) saturate(1.2); }
}

/* The transient assistant greeting is useful in the open rail, but must not spill outside a collapsed icon rail. */
html.rail-collapsed body .app #app-rail .sapien-nav-thought { display: none !important; }
/* Collapsed desktop rail is icon-only: never let the expanded-state badge overlap the S. */
html.rail-collapsed body .app #app-rail nav.drawer-module-links > a.sapien-assistant-nav[data-view="mural"]::after {
  display: none !important;
  content: none !important;
}
html.rail-collapsed body .app #app-rail nav.drawer-module-links > a.sapien-assistant-nav[data-view="mural"] {
  justify-content: center !important;
  gap: 0 !important;
  padding-inline: 6px !important;
}
html.rail-collapsed body .app #app-rail nav.drawer-module-links > a.sapien-assistant-nav[data-view="mural"] .nav-icon {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
}
/* Mobile rail drawer and bottom IA tab retain their labels and safe touch targets. */
html body .app > .mobile-nav > a.sapien-assistant-nav[data-view="mural"] {
  position: relative !important;
  min-width: 0 !important;
  min-height: 58px !important;
  border: 1px solid rgba(228,124,116,.14) !important;
  background: linear-gradient(180deg, rgba(255, 60, 0,.095), rgba(255,255,255,.012)) !important;
}
html body .app > .mobile-nav > a.sapien-assistant-nav[data-view="mural"] .nav-icon {
  width: 28px !important;
  height: 28px !important;
}
html body .app > .mobile-nav > a.sapien-assistant-nav[data-view="mural"] .nav-icon img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  filter: drop-shadow(0 0 6px rgba(255, 60, 0,.5)) saturate(1.12) !important;
  animation: rs-ai-mark-breathe 4.8s ease-in-out infinite !important;
}
html body .app > .mobile-nav > a.sapien-assistant-nav[data-view="mural"] > .mobile-nav-label {
  color: #F4CBC8 !important;
  -webkit-text-fill-color: #F4CBC8 !important;
  font-size: .68rem !important;
  font-weight: 790 !important;
  letter-spacing: .055em !important;
}
html body.mobile-rail-open .app #app-rail {
  box-sizing: border-box !important;
  width: min(88vw, 330px) !important;
  max-width: calc(100vw - var(--rs-safe-left) - var(--rs-safe-right) - 16px) !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: calc(18px + var(--rs-safe-bottom)) !important;
}
html body.mobile-rail-open .app #app-rail .drawer-module-links { min-width: 0 !important; }
html body.mobile-rail-open .app #app-rail .drawer-module-links > a { min-height: 52px !important; }

/* Narrow phones / short landscape / keyboard-open: stack sectors and keep actions reachable. */
@media (max-width: 430px) {
  html body #auth-modal:not([hidden]) {
    place-items: center stretch !important;
    padding: calc(8px + var(--rs-safe-top)) calc(9px + var(--rs-safe-right)) calc(8px + var(--rs-safe-bottom)) calc(9px + var(--rs-safe-left)) !important;
  }
  html body #auth-modal:not([hidden]) .auth-card {
    width: 100% !important;
    max-width: 420px !important;
    max-height: calc(100dvh - 16px - var(--rs-safe-top) - var(--rs-safe-bottom)) !important;
    padding: 20px 17px calc(18px + var(--rs-safe-bottom)) !important;
    border-radius: 19px !important;
    scrollbar-gutter: auto !important;
  }
  html body #auth-modal .auth-card > p { margin-bottom: 13px !important; }
  html body #auth-modal .auth-google { min-height: 48px !important; margin-top: 8px !important; }
  html body #auth-modal .auth-divider { margin: 13px 0 11px !important; }
  html body #auth-modal .email-box { gap: 7px !important; }
  html body #auth-modal .email-box input { min-height: 48px !important; height: 48px !important; }
  html body #auth-modal .auth-switch { margin-top: 12px !important; }
  html body #wizard.open:not([hidden]) { align-items: flex-start !important; padding-top: calc(10px + var(--rs-safe-top)) !important; }
  html body #wizard .wizard-card {
    width: 100% !important;
    max-height: calc(100dvh - 20px - var(--rs-safe-top) - var(--rs-safe-bottom)) !important;
    border-radius: 19px !important;
  }
  html body #wizard .wizard-top { margin-bottom: 14px !important; }
  html body #wizard .wizard-inner { padding-top: 16px !important; padding-bottom: 12px !important; }
  html body #wizard .sectors {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    max-height: min(42dvh, 310px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 2px 3px 4px !important;
  }
  html body #wizard .sector {
    min-height: 57px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 9px 11px !important;
    text-align: left !important;
  }
  html body #wizard .sector small { display: block !important; font-size: .66rem !important; line-height: 1.25 !important; }
  html body #wizard .wizard-nav { position: sticky !important; bottom: 0 !important; margin-top: 10px !important; padding: 10px 14px calc(10px + var(--rs-safe-bottom)) !important; }
}
@media (max-width: 350px) {
  html body #auth-modal .auth-card { padding-inline: 14px !important; }
  html body #auth-modal .auth-switch { grid-template-columns: minmax(0,1fr) !important; text-align: center !important; }
  html body #auth-modal .auth-switch button { justify-self: center !important; }
  html body #wizard .wizard-card { padding-inline: 0 !important; }
  html body #wizard .wizard-nav { gap: 8px !important; padding-inline: 11px !important; }
  html body #wizard .wizard-nav button { min-width: 0 !important; flex: 1 1 0 !important; }
}
@media (max-height: 620px) {
  html body #auth-modal:not([hidden]) { align-content: start !important; }
  html body #auth-modal:not([hidden]) .auth-card { margin-block: auto !important; }
  html body #wizard.open:not([hidden]) { align-items: flex-start !important; }
  html body #wizard .wizard-card { margin-block: auto !important; }
  html body #wizard .wizard-top { margin-bottom: 12px !important; }
  html body #wizard .wizard-inner { padding-top: 12px !important; padding-bottom: 8px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body .app .sapien-assistant-nav .nav-icon img,
  html body .app > .mobile-nav > .sapien-assistant-nav .nav-icon img { animation: none !important; }
}

/* Retain the established brand introduction on wide desktop; keep a single card on compact viewports. */
@media (min-width: 980px) and (min-height: 620px) {
  html body #auth-modal:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 480px) !important;
    gap: clamp(28px, 5vw, 72px) !important;
    justify-content: center !important;
    align-content: center !important;
    align-items: center !important;
    padding: clamp(32px, 5vw, 76px) !important;
  }
  html body #auth-modal:not([hidden]) .auth-intro {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-self: end !important;
    width: min(100%, 540px) !important;
    max-width: 540px !important;
    color: #f2f5f6 !important;
  }
  html body #auth-modal .auth-intro-eyebrow {
    color: #bcc6cb !important;
    font-size: .74rem !important;
    font-weight: 750 !important;
    letter-spacing: .16em !important;
  }
  html body #auth-modal .auth-intro-symbol {
    display: grid !important;
    place-items: center !important;
    width: 72px !important;
    height: 72px !important;
    margin: 24px 0 !important;
    border: 1px solid rgba(231,140,133,.27) !important;
    border-radius: 22px !important;
    background: radial-gradient(circle at 34% 25%, rgba(255, 60, 0,.23), rgba(255,255,255,.025) 65%) !important;
    color: #EEAEAA !important;
    font-size: 2.3rem !important;
    font-weight: 760 !important;
    box-shadow: 0 0 38px rgba(255, 60, 0,.1), inset 0 0 20px rgba(255,255,255,.035) !important;
  }
  html body #auth-modal .auth-intro-title {
    max-width: 11ch !important;
    color: #f6f7f8 !important;
    font-size: clamp(2.4rem, 4vw, 4rem) !important;
    font-weight: 780 !important;
    letter-spacing: -.055em !important;
    line-height: 1.04 !important;
    text-wrap: balance !important;
  }
  html body #auth-modal .auth-intro > p {
    max-width: 38ch !important;
    margin-top: 16px !important;
    color: #b6c0c4 !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }
  html body #auth-modal:not([hidden]) .auth-card { justify-self: start !important; }
}

/* Full-screen two-step onboarding */
html body #wizard[hidden]{display:none!important}
html body #wizard.open:not([hidden]){position:fixed!important;inset:0!important;z-index:1500!important;box-sizing:border-box!important;display:flex!important;align-items:stretch!important;justify-content:stretch!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;padding:0!important;border:0!important;border-radius:0!important;background:radial-gradient(ellipse at 50% 8%,rgba(255, 60, 0,.105),transparent 43%),rgba(4,6,8,.985)!important;-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important}
html body #wizard .wizard-card{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;width:100%!important;max-width:none!important;height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important;padding:calc(18px + env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body #wizard .wizard-top,html body #wizard .wizard-inner,html body #wizard .wizard-nav{box-sizing:border-box!important;width:min(100%,920px)!important;align-self:center!important}
html body #wizard .wizard-top{flex:0 0 auto!important;gap:18px!important;margin:0 auto!important;padding:4px 0 16px!important;border-bottom:1px solid rgba(255,255,255,.075)!important}
html body #wizard .wizard-brand{gap:10px!important;color:#f1f3f5!important;font-size:.78rem!important;font-weight:800!important;letter-spacing:.12em!important}
html body #wizard .wizard-brand img{width:28px!important;height:28px!important}
html body #wizard .progress-meta{color:#d8dcdf!important;font-size:.82rem!important;font-weight:750!important}
html body #wizard .progress{height:3px!important;margin-top:8px!important;border-radius:99px!important;background:rgba(255,255,255,.11)!important}
html body #wizard .progress-fill{border-radius:99px!important;background:linear-gradient(90deg,#E17068,#BF5B53)!important;box-shadow:0 0 13px rgba(255, 60, 0,.4)!important;transition:width .28s ease!important}
html body #wizard .wizard-inner{min-height:0!important;flex:1 1 auto!important;overflow:auto!important;overscroll-behavior:contain!important;padding:clamp(30px,8vh,88px) 0 24px!important;scrollbar-width:thin!important}
html body #wizard .wizard-status:empty{display:none!important}
html body #wizard .wizard-inner .step{width:100%!important}
html body #wizard .wizard-inner .step h2{margin:0 0 clamp(22px,5vh,44px)!important;color:#f7f8f9!important;font-size:clamp(1.55rem,3.4vw,2.7rem)!important;font-weight:760!important;letter-spacing:-.04em!important;line-height:1.12!important;text-wrap:balance!important}
html body #wizard .field-label{display:block!important;margin:0 0 12px!important;color:#e7eaec!important;font-size:clamp(1rem,2vw,1.25rem)!important;font-weight:660!important;line-height:1.4!important}
html body #wizard .text-input{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:60px!important;height:60px!important;padding:0 18px!important;border:1px solid rgba(255,255,255,.17)!important;border-radius:16px!important;background:rgba(255,255,255,.045)!important;color:#f5f6f7!important;font-size:17px!important;box-shadow:0 8px 30px rgba(0,0,0,.12)!important}
html body #wizard .text-input:focus-visible{outline:2px solid rgba(255, 60, 0,.82)!important;outline-offset:3px!important}
html body #wizard .text-input::placeholder{color:#858d93!important}
html body #wizard .sector-intro{margin:-24px 0 24px!important;color:#aeb7bc!important;font-size:clamp(.92rem,1.5vw,1.08rem)!important;line-height:1.45!important}
html body #wizard .sectors{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;width:100%!important;max-height:none!important;overflow:visible!important;padding:2px!important}
html body #wizard .sector{box-sizing:border-box!important;display:grid!important;grid-template-columns:64px minmax(0,1fr) 24px!important;align-items:center!important;gap:18px!important;width:100%!important;min-width:0!important;min-height:128px!important;height:auto!important;padding:20px 22px!important;text-align:left!important;border:1px solid rgba(255,255,255,.105)!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(26,29,32,.92),rgba(14,16,18,.94))!important;color:#f6f7f8!important;box-shadow:0 12px 32px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.025)!important;transition:transform .17s ease,border-color .17s ease,background .17s ease,box-shadow .17s ease!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent!important}
html body #wizard .sector:hover,html body #wizard .sector:focus-visible,html body #wizard .sector.selected{transform:translateY(-2px)!important;border-color:rgba(255, 60, 0,.55)!important;background:linear-gradient(145deg,rgba(55,32,29,.9),rgba(21,20,21,.98))!important;box-shadow:0 16px 38px rgba(0,0,0,.28),0 0 26px rgba(255, 60, 0,.09),inset 0 1px rgba(255,255,255,.06)!important}
html body #wizard .sector:disabled{cursor:wait!important;opacity:.78!important;transform:none!important}
html body #wizard .sector-icon{box-sizing:border-box!important;display:grid!important;place-items:center!important;width:62px!important;height:62px!important;min-width:62px!important;margin:0!important;border:1px solid rgba(255, 60, 0,.22)!important;border-radius:18px!important;background:radial-gradient(circle at 30% 26%,rgba(230,133,126,.20),rgba(223,102,93,.075) 58%,rgba(255,255,255,.025))!important;color:#EDA7A2!important;box-shadow:inset 0 1px rgba(255,255,255,.07),0 8px 19px rgba(0,0,0,.15)!important}
html body #wizard .sector-icon svg{width:31px!important;height:31px!important}
html body #wizard .sector-copy{display:grid!important;gap:7px!important;min-width:0!important}
html body #wizard .sector-copy b{color:#f4f5f6!important;font-size:clamp(1.06rem,1.9vw,1.34rem)!important;font-weight:740!important;line-height:1.22!important}
html body #wizard .sector-copy small{display:block!important;color:#aab3b8!important;font-size:clamp(.82rem,1.25vw,.94rem)!important;line-height:1.38!important}
html body #wizard .sector-arrow{color:#EA9B96!important;font-size:1.24rem!important;opacity:.78!important;transition:transform .17s ease,opacity .17s ease!important}
html body #wizard .sector:hover .sector-arrow{transform:translate(2px,-2px)!important;opacity:1!important}
html body #wizard .wizard-nav{flex:0 0 auto!important;display:flex!important;justify-content:flex-start!important;gap:12px!important;margin:0 auto!important;padding:12px 0 4px!important;border-top:1px solid rgba(255,255,255,.07)!important;background:transparent!important}
html body #wizard .wizard-nav button{min-height:48px!important;padding:0 20px!important;border-radius:13px!important;font-size:.92rem!important}
html body #wizard.step-two-active #wizard-next{display:none!important}
html body #wizard.step-two-active #wizard-back{min-width:108px!important}
html body #wizard .wizard-status:not(:empty){margin:0 0 16px!important;padding:12px 14px!important;border:1px solid rgba(255, 60, 0,.24)!important;border-radius:12px!important;background:rgba(255, 60, 0,.08)!important;color:#F4CCC9!important;font-size:.9rem!important;line-height:1.4!important}
@media(max-width:700px){html body #wizard .wizard-card{padding:calc(14px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))!important}html body #wizard .wizard-top{gap:12px!important;padding-bottom:13px!important}html body #wizard .wizard-brand img{width:26px!important;height:26px!important}html body #wizard .wizard-brand span{font-size:.72rem!important}html body #wizard .progress-meta{font-size:.76rem!important}html body #wizard .wizard-inner{padding:clamp(24px,6vh,52px) 0 16px!important}html body #wizard .wizard-inner .step h2{margin-bottom:clamp(20px,4vh,34px)!important;font-size:clamp(1.45rem,6.3vw,2rem)!important}html body #wizard .field-label{margin-bottom:10px!important;font-size:1rem!important}html body #wizard .text-input{min-height:56px!important;height:56px!important;padding-inline:15px!important;font-size:16px!important}html body #wizard .sector-intro{margin:-15px 0 17px!important;font-size:.9rem!important}html body #wizard .sectors{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}html body #wizard .sector{grid-template-columns:50px minmax(0,1fr) 20px!important;gap:13px!important;min-height:76px!important;padding:12px 14px!important;border-radius:16px!important}html body #wizard .sector-icon{width:48px!important;height:48px!important;min-width:48px!important;border-radius:14px!important}html body #wizard .sector-icon svg{width:25px!important;height:25px!important}html body #wizard .sector-copy{gap:4px!important}html body #wizard .sector-copy b{font-size:1rem!important}html body #wizard .sector-copy small{font-size:.76rem!important;line-height:1.3!important}html body #wizard .wizard-nav{padding:10px 0 max(2px,env(safe-area-inset-bottom))!important}html body #wizard .wizard-nav button{min-height:48px!important}}
@media(max-width:360px){html body #wizard .wizard-card{padding-inline:max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-left))!important}html body #wizard .sector{grid-template-columns:44px minmax(0,1fr) 18px!important;gap:10px!important;padding:11px!important}html body #wizard .sector-icon{width:42px!important;height:42px!important;min-width:42px!important}html body #wizard .sector-copy small{font-size:.72rem!important}}
@media(max-height:680px){html body #wizard .wizard-inner{padding-top:clamp(14px,3vh,28px)!important;padding-bottom:12px!important}html body #wizard .wizard-inner .step h2{margin-bottom:clamp(14px,3vh,24px)!important}html body #wizard .sector-intro{margin-bottom:12px!important}html body #wizard .sectors{gap:9px!important}html body #wizard .sector{min-height:88px!important}}
@media(prefers-reduced-motion:reduce){html body #wizard *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* onboarding-last-cascade-v6 */

/* onboarding-first-name-sync-v7 */

/* Final onboarding cascade: four roomy options, readable copy, safe centered flow */
html body #wizard.open:not([hidden]) .wizard-card .wizard-inner{display:flex!important;flex-direction:column!important;justify-content:safe center!important;padding-top:clamp(20px,4vh,48px)!important;padding-bottom:clamp(16px,3vh,30px)!important}
html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .step{width:100%!important}
html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .step h2{font-size:clamp(1.45rem,2.4vw,2.1rem)!important;line-height:1.18!important;margin-bottom:clamp(20px,3.5vh,34px)!important}
html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector{display:grid!important;grid-template-columns:68px minmax(0,1fr) 24px!important;align-items:center!important;gap:18px!important;min-height:142px!important;height:auto!important;padding:22px 24px!important;border-radius:20px!important}
html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector .sector-icon{width:62px!important;height:62px!important;min-width:62px!important;flex:0 0 62px!important;border-radius:18px!important}
html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector .sector-icon svg{width:32px!important;height:32px!important}
html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector .sector-copy b{font-size:clamp(1.1rem,1.5vw,1.3rem)!important;line-height:1.24!important}
html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector .sector-copy small{font-size:clamp(.88rem,1.05vw,1rem)!important;line-height:1.42!important}
html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sector-intro{font-size:1rem!important;margin-bottom:22px!important}
html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
@media(max-width:700px){
 html body #wizard.open:not([hidden]) .wizard-card .wizard-inner{justify-content:flex-start!important;padding-top:clamp(20px,4vh,34px)!important;padding-bottom:14px!important}
 html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .step h2{font-size:clamp(1.4rem,5.7vw,1.8rem)!important;margin-bottom:clamp(18px,3vh,28px)!important}
 html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sector-intro{font-size:.9rem!important;margin-bottom:14px!important}
 html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector{grid-template-columns:52px minmax(0,1fr) 20px!important;gap:13px!important;min-height:82px!important;padding:13px 15px!important;border-radius:16px!important}
 html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector .sector-icon{width:49px!important;height:49px!important;min-width:49px!important;flex-basis:49px!important;border-radius:15px!important}
 html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector .sector-icon svg{width:26px!important;height:26px!important}
 html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector .sector-copy b{font-size:1.06rem!important}
 html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector .sector-copy small{font-size:.84rem!important;line-height:1.35!important}
}
@media(max-width:360px){html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector{grid-template-columns:44px minmax(0,1fr) 18px!important;gap:11px!important;padding:11px!important;min-height:76px!important}html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector .sector-icon{width:42px!important;height:42px!important;min-width:42px!important;flex-basis:42px!important}}
@media(max-height:640px){html body #wizard.open:not([hidden]) .wizard-card .wizard-inner{justify-content:flex-start!important;padding-top:14px!important;padding-bottom:10px!important}html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors>button.sector{min-height:112px!important}html body #wizard.open:not([hidden]) .wizard-card .wizard-inner .sectors{gap:10px!important}}
/* onboarding-four-large-niches-final-v8 */
