

/* ============================= */
/* Global Design Tokens */
/* ============================= */

:root{
  --bg: #f7f8fb;
  --text: #101828;
  --muted: #667085;
  --border: rgba(16,24,40,.10);
  --container: 1120px;
  --portzo-safe-bottom: env(safe-area-inset-bottom, 0px);
  --portzo-safe-top: env(safe-area-inset-top, 0px);
  --portzo-safe-left: env(safe-area-inset-left, 0px);
  --portzo-safe-right: env(safe-area-inset-right, 0px);
  --portzo-mobile-bottom-nav-height: 74px;
  --portzo-mobile-nav-translate-y: 0px;
  --portzo-top-nav-height: 76px;
  --portzo-viewport-height: 100vh;

  /* Brand */
  --portzo-green: #7FAF9A;
  --portzo-green-2: #9CC7B1;
  --portzo-action: #3F8F6F;

  /* Shared UI system tokens */
  --ui-surface: #ffffff;
  --ui-surface-muted: #f8fafc;
  --ui-border-subtle: rgba(16,24,40,.08);
  --ui-border-default: rgba(16,24,40,.12);

  --ui-radius-sm: 10px;
  --ui-radius-md: 12px;
  --ui-radius-lg: 16px;
  --ui-radius-xl: 20px;
  --ui-radius-pill: 999px;

  --ui-space-1: 6px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 20px;
  --ui-space-6: 24px;

  --ui-shadow-sm: 0 2px 6px rgba(16,24,40,.04);
  --ui-shadow-md: 0 10px 28px rgba(16,24,40,.06);
  --ui-shadow-lg: 0 18px 45px rgba(16,24,40,.12);

  --ui-font-label: 13px;
  --ui-font-body: 14px;
  --ui-font-title: 20px;
  --ui-font-hero: 34px;

  --ui-control-h: 40px;
  --ui-control-h-lg: 44px;
  --motion-fast: 140ms;
  --motion-medium: 200ms;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --theme-bg: #f7f8fb;
  --theme-text: #101828;
  --theme-muted: #667085;
  --theme-surface: #ffffff;
  --theme-border: rgba(16,24,40,.10);
  --theme-nav-bg: rgba(247,248,251,.70);
  --theme-nav-link-hover-bg: rgba(255,255,255,.72);
  --theme-nav-link-hover-text: #101828;
  --theme-btn-bg: #ffffff;
  --theme-btn-text: #3c4043;
  --theme-btn-hover-bg: #f7f8f8;
  --theme-modal-bg: #ffffff;
  --theme-modal-text: #101828;
  --theme-modal-muted: #667085;
  --theme-modal-border: rgba(16,24,40,.12);
  --theme-focus-outline: 2px solid #2f6f58;
}

@supports (height: 100dvh) {
  :root {
    --portzo-viewport-height: 100dvh;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --theme-bg: #0b1220;
  --theme-text: #e5e7eb;
  --theme-muted: #9ca3af;
  --theme-surface: #111827;
  --theme-border: rgba(148,163,184,.28);
  --theme-nav-bg: rgba(11,18,32,.82);
  --theme-nav-link-hover-bg: rgba(30,41,59,.82);
  --theme-nav-link-hover-text: #f9fafb;
  --theme-btn-bg: #111827;
  --theme-btn-text: #e5e7eb;
  --theme-btn-hover-bg: #1f2937;
  --theme-modal-bg: #111827;
  --theme-modal-text: #f9fafb;
  --theme-modal-muted: #cbd5e1;
  --theme-modal-border: rgba(148,163,184,.35);
  --theme-focus-outline: 2px solid #93c5fd;
}

html[data-theme="accessible"] {
  --theme-bg: #ffffff;
  --theme-text: #000000;
  --theme-muted: #111111;
  --theme-surface: #ffffff;
  --theme-border: #000000;
  --theme-nav-bg: #ffffff;
  --theme-nav-link-hover-bg: #e6f1ff;
  --theme-nav-link-hover-text: #000000;
  --theme-btn-bg: #ffffff;
  --theme-btn-text: #000000;
  --theme-btn-hover-bg: #e6f1ff;
  --theme-modal-bg: #ffffff;
  --theme-modal-text: #000000;
  --theme-modal-muted: #111111;
  --theme-modal-border: #000000;
  --theme-focus-outline: 3px solid #005fcc;
}

html[data-theme="accessible"] {
  font-size: 112.5%;
}

/* ============================= */
/* Shared Top Nav (Portzo) */
/* ============================= */
/* ============================= */
/* Font baseline (shared) */
/* ============================= */

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body, "Poppins", Inter, ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial);
  font-weight: 380;
  letter-spacing: 0.01em;
  color: var(--theme-text);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: scroll; /* lock scrollbar width */
  scrollbar-gutter: stable;
}





body {
  padding-top: calc(var(--portzo-top-nav-height) + var(--portzo-safe-top));
  background: var(--theme-bg);
  color: var(--theme-text);
}

body.mobile-bottom-nav-active {
  padding-bottom: calc(var(--portzo-mobile-bottom-nav-height) + var(--portzo-safe-bottom));
  padding-right: 0;
  overflow-x: hidden;
}


/* Nav text must be identical everywhere */
.nav,
.navLinks,
.btn,
.google-btn {
  font-weight: 420;
}


a {
  color: inherit;
  text-decoration: none;
}


.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--portzo-top-nav-height) + var(--portzo-safe-top));
  padding-top: var(--portzo-safe-top);
  box-sizing: border-box;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: var(--theme-nav-bg);
  border-bottom: 1px solid var(--theme-border);
}

.navInner {
  height: var(--portzo-top-nav-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1002;
  pointer-events: auto;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
}

.navLinks {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#portzoPrimaryNav {
  z-index: 1001;
}


/* PATCH: force all nav columns to vertically center their contents */
.navInner > * {
  display: flex;
  align-items: center;
  height: 100%;
}

/* PATCH: remove font baseline differences inside nav */
.navInner,
.navInner * {
  line-height: 1;
}


.navLinks{
  display:flex;
  gap: 18px;
  align-items:center;
  color: var(--theme-muted);
  font-size: 15.5px;
  font-weight: 500;
  justify-self: center;
}

.navLinks a{
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.navLinks a.active {
  color: #2f6f58;
  font-weight: 520;
  background: #e7f3ec;
  border-color: rgba(63, 143, 111, 0.24);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
}


.navLinks a:hover{
  background: var(--theme-nav-link-hover-bg);
  color: var(--theme-nav-link-hover-text);
  border: 1px solid var(--theme-border);
}

.mobileBottomNav {
  display: none;
}

html.portzo-app-shell .mobileBottomNav,
body.portzo-app-shell .mobileBottomNav {
  display: none !important;
}

body.portzo-app-shell.mobile-bottom-nav-active {
  padding-bottom: 0 !important;
}

.navActions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;   /* 👈 THIS IS THE KEY LINE */
}

.navActions {
  position: relative;
  z-index: 1002;
  pointer-events: auto;
}

.mobileNavToggle {
  display: none;
  width: var(--ui-control-h);
  height: var(--ui-control-h);
  padding: 0;
  border: 1px solid rgba(16,24,40,.14);
  border-radius: var(--ui-radius-sm);
  background: rgba(255,255,255,.88);
  color: #101828;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobileNavBars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.mobileNavBars::before,
.mobileNavBars::after,
.mobileNavBars span {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #101828;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.mobileNavBars::before { top: 0; }
.mobileNavBars span { top: 5px; }
.mobileNavBars::after { top: 10px; }

.mobileNavToggle.open .mobileNavBars::before {
  top: 5px;
  transform: rotate(45deg);
}

.mobileNavToggle.open .mobileNavBars span {
  opacity: 0;
}

.mobileNavToggle.open .mobileNavBars::after {
  top: 5px;
  transform: rotate(-45deg);
}

#userMenu {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}


@media (max-width: 940px){
  .nav {
    overflow: visible;
  }

  .mobileNavToggle {
    display: inline-flex;
    order: 2;
    flex: 0 0 auto;
  }

  .google-btn {
    width: auto;
    min-width: 118px;
    height: 46px;
    padding: 0 16px 0 12px;
    gap: 10px;
    justify-content: flex-start;
  }

  .signInLaunchBtn {
    min-width: 118px;
    width: auto;
  }

  .signInLaunchText {
    display: inline-flex;
  }

  .signInLogoSwap {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .signInLogo img {
    width: 15px;
    height: 15px;
  }

  .navLinks {
    display: none;
    position: absolute;
    top: calc(var(--portzo-top-nav-height) + var(--portzo-safe-top));
    left: 12px;
    right: 12px;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: 0;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(16,24,40,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 14px 30px rgba(16,24,40,.12);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transform-origin: top center;
    transition:
      opacity var(--motion-medium) var(--motion-ease),
      transform var(--motion-medium) var(--motion-ease),
      visibility 0s linear var(--motion-medium);
  }

  .nav.mobile-open .navLinks {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity var(--motion-medium) var(--motion-ease),
      transform var(--motion-medium) var(--motion-ease),
      visibility 0s linear 0s;
  }

  .navLinks a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .navActions {
    gap: 8px;
  }

  #userMenu {
    order: 3;
    gap: 0 !important;
  }

  #userMenu .userMenuName,
  #userMenu .userMenuCaret {
    display: none !important;
  }

  .signInLaunchBtn {
    order: 3;
  }

  #userMenu #userDropdown {
    right: 0 !important;
    min-width: 168px !important;
  }

  html.nav-menu-open,
  body.nav-menu-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navLinks,
  .mobileNavBars::before,
  .mobileNavBars::after,
  .mobileNavBars span {
    transition: none !important;
  }

  .signInLogo {
    animation: none;
  }

  .signInLogoApple {
    display: none;
  }
}

@media (min-width: 941px) and (max-width: 1100px) {
  .logoImg {
    height: 54px;
  }

  .navLinks {
    gap: 10px;
    font-size: 14px;
  }

  .navLinks a {
    padding: 7px 9px;
  }

  .google-btn {
    width: 46px;
    height: 46px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }

  .signInLaunchBtn {
    min-width: 46px;
    width: 46px;
  }

  .signInLaunchText {
    display: none;
  }

  .signInLogoSwap {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  #userMenu {
    gap: 6px !important;
  }

  #userMenu .userMenuName {
    display: none !important;
  }
}

@media (max-width: 940px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    padding-right: 0;
  }

  body.mobile-bottom-nav-active {
    background: linear-gradient(180deg, rgba(47, 82, 66, 0.96), rgba(39, 72, 57, 0.96));
  }

  body.mobile-bottom-nav-active .nav {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mobileBottomNav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(47, 82, 66, 0.96), rgba(39, 72, 57, 0.96));
    border-top: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 -18px 40px rgba(18, 36, 29, 0.20);
    backdrop-filter: blur(14px);
    box-sizing: border-box;
    transform: translateY(var(--portzo-mobile-nav-translate-y, 0px));
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  .mobileBottomNav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -48px;
    height: calc(48px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(39, 72, 57, 0.96), rgba(39, 72, 57, 0.96));
    pointer-events: none;
  }

  .mobileBottomNav.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(var(--portzo-mobile-nav-translate-y, 0px) + 8px));
  }

  .mobileBottomNav a {
    min-height: 50px;
    min-width: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    color: rgba(232, 240, 235, 0.72);
    border-radius: 14px;
    padding: 7px 4px;
    transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
  }

  .mobileBottomNav a:hover {
    background: rgba(255,255,255,.05);
    color: rgba(248,250,249,.92);
    border: none;
  }

  .mobileBottomNav a.active {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(143, 184, 161, 0.24), rgba(143, 184, 161, 0.12));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.12),
      0 8px 20px rgba(17, 39, 31, 0.16);
  }

  .mobileBottomNav a svg {
    width: 23px;
    height: 23px;
    display: block;
    opacity: 0.88;
  }

  .mobileBottomNav a[data-mobile-nav="portfolio"] svg {
    width: 24px;
    height: 24px;
  }

  .mobileBottomNav a span {
    font-size: 10px;
    line-height: 1;
    font-weight: 580;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-transform: uppercase;
  }

  .mobileBottomNav a.active span {
    font-weight: 640;
  }

  html.portzo-app-shell .mobileBottomNav,
  body.portzo-app-shell .mobileBottomNav {
    display: none !important;
  }

  html.portzo-app-shell body,
  body.portzo-app-shell {
    padding-bottom: 0 !important;
  }

}
/* ============================= */
/* Shared Nav Primitives */
/* ============================= */

.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.navBuildBadge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(16,24,40,.1);
  background: linear-gradient(180deg, rgba(255,245,214,.98), rgba(232,255,236,.98));
  box-shadow: 0 8px 18px rgba(16,24,40,.08);
  color: #245746;
  flex: 0 0 auto;
}

.navBuildBadgeDot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff7a00;
  box-shadow: 0 0 0 4px rgba(255,122,0,.16);
}

.navBuildBadgeText {
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

body.settings-onboarding-active .brand,
body.settings-onboarding-active .navLinks a,
body.settings-onboarding-active .navActions > *,
body.settings-onboarding-active .mobileBottomNav a,
body.portfolio-onboarding-active .brand,
body.portfolio-onboarding-active .navLinks a,
body.portfolio-onboarding-active .navActions > *,
body.plan-onboarding-active .brand,
body.plan-onboarding-active .navLinks a,
body.plan-onboarding-active .navActions > *,
body.plan-onboarding-active .mobileBottomNav a,
body.portfolio-onboarding-active .mobileBottomNav a {
  pointer-events: none;
}

body.portfolio-intro-label-active .mobileBottomNav #portfolioMobileNavLink,
body.portfolio-intro-label-active #portfolioNavLink,
body.plan-intro-label-active .mobileBottomNav #planMobileNavLink,
body.plan-intro-label-active #planNavLink {
  pointer-events: auto;
}

.logoImg{
  height: 60px;
  width: auto;
  display: block;
}

@media (max-width: 940px) {
  .navBuildBadge {
    height: 24px;
    padding: 0 8px;
    gap: 6px;
  }

  .navBuildBadgeText {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .navBuildBadgeDot {
    width: 8px;
    height: 8px;
  }
}

/* ============================= */
/* Nav Buttons (Google / User) */
/* ============================= */

.btn{
  height: var(--ui-control-h);
  padding: 0 14px;
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border-default);
  background: rgba(255,255,255,.65);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 16px rgba(16,24,40,.06);
}

.btn:hover{
  transform: translateY(-1px);
}

.google-btn{
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  border: 1px solid rgba(43, 103, 80, 0.92);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #4f9478 0%, #3f7f67 100%);
  color: #ffffff;
  font-size: var(--ui-font-body);
  font-weight: 560;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  box-shadow:
    0 12px 24px rgba(40, 95, 75, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.google-btn img{
  width: 18px;
  height: 18px;
}

.google-btn:hover{
  background:
    linear-gradient(180deg, #5aa486 0%, #45856d 100%);
  border-color: rgba(43, 103, 80, 1);
  box-shadow:
    0 16px 28px rgba(40, 95, 75, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

.signInLaunchBtn {
  min-width: 132px;
  justify-content: flex-start;
  gap: 12px;
}

.signInLogoSwap {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(241,247,244,0.94) 100%);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
  overflow: hidden;
}

.signInLogo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.8);
  animation: signInLogoSwap 4s infinite;
}

.signInLogoGoogle {
  opacity: 1;
}

.signInLogoApple {
  animation-delay: 2s;
}

.signInLogo img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.signInLogo .metaProviderGlyph {
  width: 15px;
  height: 10px;
  fill: #1877f2;
  transform: translateX(1px);
}

.signInLaunchText {
  display: flex;
  align-items: center;
  line-height: 1;
}

.google-btn .google-btn-text {
  color: inherit;
  font: inherit;
  font-size: 17px;
  font-weight: 560;
  text-decoration: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1;
  display: inline-block;
}

@keyframes signInLogoSwap {
  0%, 42% {
    opacity: 1;
    transform: scale(1);
  }
  50%, 100% {
    opacity: 0;
    transform: scale(.8);
  }
}

.authProviderModal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(16,24,40,.42);
  backdrop-filter: blur(3px);
}

.authProviderModal[aria-hidden="true"] {
  display: none;
}

.authProviderCard {
  width: min(420px, calc(100vw - 24px));
  border-radius: 18px;
  border: 1px solid var(--theme-modal-border);
  background: var(--theme-modal-bg);
  box-shadow: 0 22px 48px rgba(16,24,40,.2);
  padding: 20px;
  position: relative;
}

.authProviderCard h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 620;
  color: var(--theme-modal-text);
}

.authProviderCard p {
  margin: 0 0 14px;
  color: var(--theme-modal-muted);
  font-size: 14px;
  line-height: 1.4;
}

.authProviderCloseBtn {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--theme-modal-border);
  border-radius: 999px;
  background: var(--theme-modal-bg);
  color: var(--theme-modal-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.authProviderBtn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--theme-modal-border);
  background: var(--theme-modal-bg);
  color: var(--theme-modal-text);
  padding: 10px 14px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 560;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
}

.authProviderBtn:last-child {
  margin-bottom: 0;
}

.authProviderBtn img,
.authProviderBtn svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
}

.authProviderBtn svg {
  fill: #101828;
}

.authProviderBtn:hover {
  background: var(--theme-nav-link-hover-bg);
  border-color: var(--theme-border);
}

.authProviderBtn .authProviderAppleIcon {
  width: 16px;
  height: 20px;
}

.authProviderBtn svg {
  color: var(--theme-modal-text);
  fill: none;
}

.authProviderEmailForm {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 2px 0 10px;
}

.authProviderEmailForm[hidden] {
  display: none;
}

.authProviderEmailForm input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--theme-modal-border);
  border-radius: 10px;
  background: var(--theme-modal-bg);
  color: var(--theme-modal-text);
  padding: 10px 12px;
  font-size: 14px;
}

.authProviderEmailForm input:first-of-type {
  grid-column: 1 / -1;
}

.authProviderEmailForm input:focus {
  outline: 2px solid rgba(40, 160, 120, .22);
  outline-offset: 2px;
  border-color: var(--theme-border);
}

.authProviderEmailForm button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--portzo-action);
  color: #fff;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 620;
  cursor: pointer;
}

.authProviderEmailForm button:disabled,
.authProviderEmailForm input:disabled {
  cursor: wait;
  opacity: .68;
}

.authProviderEmailStatus {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: -2px 0 0 !important;
  font-size: 13px !important;
  color: var(--theme-modal-muted) !important;
}

.authProviderEmailStatus.is-error {
  color: #b42318 !important;
}

.authProviderEmailStatus.is-success {
  color: #027a48 !important;
}

.authProviderFooter {
  display: flex;
  justify-content: flex-end;
  min-height: 24px;
  margin-top: 12px;
}

.authProviderSkipBtn {
  border: 0;
  background: transparent;
  color: var(--theme-modal-muted);
  font-size: 13px;
  font-weight: 560;
  padding: 2px 4px;
  cursor: pointer;
}

.authProviderSkipBtn:hover {
  color: var(--theme-modal-text);
}

.metaProviderGlyph {
  width: 28px !important;
  height: 18px !important;
  fill: #0866ff;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: var(--theme-focus-outline);
  outline-offset: 2px;
}

/* ============================= */
/* Nav layout lock */
/* ============================= */

section[id] {
  scroll-margin-top: 96px;
}

/* Info tooltip */

.info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  z-index: 5;
}

.info-icon {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  flex: 0 0 14px;
  margin-left: 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  cursor: help;
  background: transparent;
  color: #3f8f6f;
}

.info-icon:hover,
.info-icon:focus-visible {
  opacity: 0.85;
}

.info-tooltip {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 40;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  padding: 6px 8px;
  border-radius: 6px;
  width: 220px;
  max-width: min(220px, calc(100vw - 32px));
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.18);
}

.info-wrap:hover .info-tooltip,
.info-wrap:focus-within .info-tooltip,
.info-wrap.isOpen .info-tooltip {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .info-tooltip {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: auto;
    top: var(--info-mobile-top, auto);
    transform: translateX(-50%);
    width: min(280px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    z-index: 1200;
  }
}

/* Prevent iOS/WKWebView focus zoom on mobile form fields. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 940px) {
    input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
    textarea,
    select {
      font-size: 16px !important;
    }
  }
}

html.portzo-app-shell,
body.portzo-app-shell {
  -webkit-touch-callout: none;
}

body.portzo-app-shell :where(
  h1, h2, h3, h4, h5, h6,
  p, span, strong, em, small, label, a, button,
  div, section, article, aside, header, footer, nav,
  ul, ol, li, dt, dd,
  table, thead, tbody, tr, th, td,
  img, svg, canvas
) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.portzo-app-shell :is(input, textarea, select, [contenteditable="true"], [contenteditable="plaintext-only"]) {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

body.portzo-app-shell :is(img, svg, canvas) {
  -webkit-user-drag: none;
}
