primary-menu {
  display: block;
  min-height: 64px;
}

/* Public hero copy follows the landing page's opening frame. Keeping these
   shared insets here prevents each pre-login page from drifting away from the
   homepage as its artwork or content height changes. */
:root {
  --public-hero-copy-left: max(7vw, calc((100vw - 1440px) / 2));
  --public-hero-copy-top: 18vh;
  /* Every public-page eyebrow starts where “Welcome to VestMind” starts. */
  --public-page-label-top: var(--public-hero-copy-top);
}

primary-menu .primary-menu.primary-menu {
  align-items: center;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid #e4e6e9;
  box-sizing: border-box;
  display: flex;
  font-family: var(--font-body);
  gap: 20px;
  height: 64px;
  justify-content: space-between;
  padding: 0 clamp(20px, 3.7vw, 64px);
  position: relative;
  top: auto;
  z-index: 100;
}

/* The logo owns its visual treatment in shadow DOM so page-level `.brand`
   rules cannot make it look different from one route to another. */
primary-menu vestmind-logo { margin: 0; }

primary-menu .primary-menu__brand.primary-menu__brand {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  margin: 0;
  text-decoration: none;
}

primary-menu .primary-menu__brand img {
  display: block;
  height: 42px;
  max-width: 58px;
  object-fit: contain;
  width: auto;
}

primary-menu .primary-menu__brand .brand-name {
  color: #03172f;
  display: flex;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1;
}

primary-menu .primary-menu__brand .brand-name__accent { color: #c58c35; }

primary-menu .primary-menu.primary-menu nav {
  align-items: center;
  bottom: 0;
  display: flex;
  gap: clamp(28px, 3vw, 48px);
  height: 64px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

primary-menu .primary-menu.primary-menu nav a {
  align-items: center;
  align-self: stretch;
  color: #29416f;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  height: auto;
  line-height: 1.2;
  padding: 0;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

primary-menu .primary-menu.primary-menu nav a:hover,
primary-menu .primary-menu.primary-menu nav a.active { color: #001d5c; }
primary-menu .primary-menu.primary-menu nav a.active::after { background: #ed9700; bottom: 0; content: ''; height: 2px; left: 0; position: absolute; width: 100%; }

primary-menu .primary-menu.primary-menu .get-started,
primary-menu .primary-menu.primary-menu .back-button {
  align-items: center;
  background: #001d5c;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 10px #08265425;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 500;
  height: 42px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0 22px;
  transition: filter .2s ease, transform .2s ease;
}

primary-menu .get-started:hover,
primary-menu .back-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
primary-menu .auth-buttons-wrap { align-items: center; display: flex; flex: 0 0 auto; gap: 10px; margin-left: auto; }
primary-menu .for-institutions {
  color: #001d5c;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
primary-menu .for-institutions:hover { color: #c58c35; }
primary-menu .products-menu { align-self: stretch; position: relative; }
primary-menu .products-menu summary {
  align-items: center;
  color: var(--vestmind-logo-color, #03172f);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 7px;
  height: 100%;
  list-style: none;
  white-space: nowrap;
}
primary-menu .products-menu summary::-webkit-details-marker { display: none; }
primary-menu .products-menu summary span { border: solid currentColor; border-width: 0 1.5px 1.5px 0; height: 6px; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; width: 6px; }
primary-menu .products-menu[open] summary span { transform: rotate(225deg) translate(-2px, -2px); }
primary-menu .products-menu__dropdown {
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(218, 220, 224, .9);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(3, 23, 47, .16);
  box-sizing: border-box;
  left: 50%;
  min-width: 430px;
  padding: 29px 14px 14px;
  position: absolute;
  top: calc(100% - 1px);
  /* Keep the panel's internal proportions intact and scale the shared
     pre/post-login template as one unit. */
  transform: translateX(-50%) scale(.575);
  transform-origin: top center;
  z-index: 10;
}
primary-menu .products-menu__eyebrow {
  color: #68789a;
  font: 700 13px/1 var(--font-body);
  letter-spacing: .2em;
  margin: 0 16px 11px;
  text-align: center;
  text-transform: uppercase;
}
primary-menu .products-menu__accent { background: #e69a00; display: block; height: 2px; margin: 0 auto 10px; width: 34px; }
primary-menu .primary-menu.primary-menu .products-menu__dropdown a {
  align-items: center;
  border-radius: 14px;
  box-sizing: border-box;
  display: grid;
  gap: 18px;
  grid-template-columns: 58px 1fr 24px;
  min-height: 89px;
  padding: 10px 18px 10px 16px;
}
primary-menu .primary-menu.primary-menu .products-menu__dropdown a:hover,
primary-menu .primary-menu.primary-menu .products-menu__dropdown a:focus-visible { background: #f1f4fa; outline: none; }
primary-menu .primary-menu.primary-menu .products-menu__dropdown a::after { display: none; }
primary-menu .primary-menu.primary-menu .products-menu__dropdown a::before {
  background: #df9100;
  border-radius: 2px;
  content: '';
  height: calc(100% - 16px);
  left: 0;
  opacity: 0;
  position: absolute;
  top: 8px;
  width: 3px;
}
primary-menu .primary-menu.primary-menu .products-menu__dropdown a:hover::before,
primary-menu .primary-menu.primary-menu .products-menu__dropdown a:focus-visible::before { opacity: 1; }
primary-menu .products-menu__icon { align-items: center; background: #eef6ff; border-radius: 14px; color: #173b78; display: flex; height: 58px; justify-content: center; width: 58px; }
primary-menu .products-menu__icon svg { fill: none; height: 29px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 29px; }
primary-menu .products-menu__copy { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
primary-menu .products-menu__copy strong { color: #11182a; font-size: 19px; font-weight: 500; line-height: 1.1; }
primary-menu .products-menu__copy small { color: #41577f; font-size: 15px; font-weight: 500; line-height: 1.15; }
primary-menu .products-menu__arrow { color: #284c80; font: 300 29px/1 Arial, sans-serif; justify-self: end; }
primary-menu .primary-menu.primary-menu .products-menu__dropdown a:hover .products-menu__icon,
primary-menu .primary-menu.primary-menu .products-menu__dropdown a:focus-visible .products-menu__icon { background: #fff; color: #df9100; }
primary-menu .primary-menu.primary-menu .products-menu__dropdown a:hover .products-menu__arrow,
primary-menu .primary-menu.primary-menu .products-menu__dropdown a:focus-visible .products-menu__arrow { color: #df9100; }
primary-menu .sso-widget { flex: 0 0 auto; margin-left: auto; position: relative; }
primary-menu .user-badge {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 6px 14px;
  transition: background-color .2s ease, border-color .2s ease;
}
primary-menu .user-badge:hover { background: #f1f5f9; border-color: #cbd5e1; }
primary-menu .user-badge img { border-radius: 50%; height: 28px; object-fit: cover; width: 28px; }
primary-menu .user-badge span { display: flex; flex-direction: column; min-width: 0; text-align: left; }
primary-menu .user-badge strong { color: #0f172a; font-size: 13px; font-weight: 600; line-height: 1.2; }
primary-menu .user-badge small { color: #64748b; font-size: 11px; line-height: 1.2; }
primary-menu .user-badge i { color: #64748b; font-size: 13px; font-style: normal; margin-left: 4px; }
primary-menu .user-dropdown { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 14px 36px rgba(15, 23, 42, .16); min-width: 190px; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); z-index: 1000; }
primary-menu .user-dropdown[hidden] { display: none; }
primary-menu .user-dropdown button { background: transparent; border: 0; border-radius: 8px; color: #0f172a; cursor: pointer; display: block; font: 600 12px var(--font-body); padding: 11px 12px; text-align: left; width: 100%; }
primary-menu .user-dropdown button:hover,
primary-menu .user-dropdown button:focus-visible { background: #f1f5f9; outline: none; }
primary-menu .user-dropdown #user-logout-option { color: #dc2626; }
primary-menu .primary-menu.primary-menu .menu-toggle { display: none; }
primary-menu .hidden { display: none !important; }

@media (max-width: 900px) {
  :root {
    --public-hero-copy-left: 24px;
    --public-hero-copy-top: 14vh;
    --public-page-label-top: var(--public-hero-copy-top);
  }

  primary-menu .primary-menu.primary-menu {
    display: grid;
    gap: 8px;
    /* Equal outer tracks keep the toggle on the viewport's horizontal midpoint. */
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    padding: 0 16px;
  }
  primary-menu vestmind-logo { grid-column: 1; grid-row: 1; justify-self: start; }
  primary-menu .primary-menu__brand .brand-name { font-size: 14px; }
  primary-menu .auth-buttons-wrap,
  primary-menu .sso-widget { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; }

  primary-menu .primary-menu.primary-menu .menu-toggle {
    align-items: center;
    align-self: center;
    background: #fff;
    border: 2px solid #001d5c;
    border-radius: 11px;
    box-shadow: 0 4px 12px rgba(0, 29, 92, .16);
    cursor: pointer;
    display: flex;
    flex: 0 0 40px;
    flex-direction: column;
    gap: 5px;
    height: 40px;
    justify-content: center;
    margin: 0;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    padding: 0;
    position: static;
    transform: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    width: 40px;
  }

  primary-menu .primary-menu.primary-menu .menu-toggle:hover,
  primary-menu .primary-menu.primary-menu .menu-toggle:focus-visible {
    background: #f4f7fc;
    border-color: #0758d5;
    box-shadow: 0 6px 16px rgba(0, 29, 92, .22);
    outline: none;
    transform: translateY(-1px);
  }

  primary-menu .primary-menu.primary-menu .menu-toggle span {
    background: #001d5c;
    border-radius: 2px;
    display: block;
    flex: 0 0 2px;
    height: 2px;
    margin: 0;
    transition: opacity .18s ease, transform .18s ease;
    width: 20px;
  }

  primary-menu .primary-menu.menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  primary-menu .primary-menu.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  primary-menu .primary-menu.menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }

  primary-menu .primary-menu.primary-menu nav {
    align-items: stretch;
    background: #fff;
    border: 1px solid #e4e6e9;
    border-radius: 12px;
    bottom: auto;
    box-shadow: 0 18px 40px rgba(0, 29, 92, .14);
    flex-direction: column;
    gap: 0;
    height: auto;
    left: 16px;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    right: 16px;
    top: 58px;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
  }

  primary-menu .primary-menu.menu-open nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  primary-menu .primary-menu.primary-menu nav a { align-self: auto; border-radius: 8px; height: auto; padding: 12px 14px; }
  primary-menu .primary-menu.primary-menu nav a.active { background: #f3f6fb; }
  primary-menu .primary-menu.primary-menu nav a.active::after { display: none; }
  primary-menu .products-menu { align-self: auto; }
  primary-menu .products-menu summary { border-radius: 8px; min-height: 46px; padding: 0 16px; }
  primary-menu .products-menu__dropdown { border: 0; border-radius: 8px; box-shadow: none; left: auto; min-width: 0; padding: 14px 0 4px 14px; position: static; transform: none; }
  primary-menu .products-menu__eyebrow { margin-left: 10px; margin-right: 10px; }
  primary-menu .primary-menu.primary-menu .products-menu__dropdown a { gap: 12px; grid-template-columns: 46px 1fr 20px; min-height: 68px; padding: 8px 10px; }
  primary-menu .products-menu__icon { border-radius: 11px; height: 46px; width: 46px; }
  primary-menu .products-menu__icon svg { height: 24px; width: 24px; }
  primary-menu .products-menu__copy strong { font-size: 16px; }
  primary-menu .products-menu__copy small { font-size: 13px; }
  primary-menu .primary-menu.primary-menu .get-started { font-size: 12px; height: 38px; padding: 0 14px; }
  primary-menu .user-badge { padding: 5px 10px; }
  primary-menu .user-badge span { display: none; }
}

@media (max-width: 430px) {
  primary-menu .primary-menu.primary-menu { gap: 4px; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); padding: 0 10px; }
  primary-menu .primary-menu__brand.primary-menu__brand { gap: 7px; }
  primary-menu .primary-menu__brand img { height: 26px; }
  primary-menu .primary-menu__brand .brand-name { font-size: 12px; letter-spacing: .08em; }
}

/* Public landing-page treatment. Authenticated menus intentionally inherit the
   original rules above so product navigation is unchanged after sign-in. */
primary-menu.primary-menu--public-shell {
  min-height: 88px;
  padding: 10px clamp(18px, 3vw, 56px) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

primary-menu .primary-menu--public.primary-menu {
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .22), rgba(241, 242, 244, .08)),
    rgba(241, 242, 244, .12);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(3, 23, 47, .09), inset 0 1px 0 rgba(255, 255, 255, .72);
  height: 72px;
  padding: 0 clamp(22px, 2.8vw, 42px);
}

primary-menu .primary-menu--public.primary-menu nav { height: 72px; }
primary-menu .primary-menu--public.primary-menu nav a,
primary-menu .primary-menu--public.primary-menu nav a:hover,
primary-menu .primary-menu--public.primary-menu nav a.active {
  color: var(--vestmind-logo-color, #03172f);
  font-size: 14px;
  font-weight: 600;
}
primary-menu .primary-menu--public.primary-menu nav a::after {
  background: #c58c35;
  border-radius: 2px;
  bottom: 16px;
  content: '';
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) scaleX(0);
  transition: transform .2s ease;
  width: 100%;
}
primary-menu .primary-menu--public.primary-menu nav a:hover::after,
primary-menu .primary-menu--public.primary-menu nav a.active::after {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) scaleX(1);
}
primary-menu .primary-menu--public.primary-menu .get-started {
  background: rgba(255, 255, 255, .5);
  border: 1.5px solid #c58c35;
  border-radius: 12px;
  box-shadow: none;
  color: #001d5c;
  font-size: 14px;
  font-weight: 600;
  height: 42px;
  min-width: 148px;
  padding: 0 20px;
}
primary-menu .primary-menu--public.primary-menu .get-started:hover,
primary-menu .primary-menu--public.primary-menu .get-started:focus-visible {
  background: #001d5c;
  border-color: #001d5c;
  color: #fff;
  filter: none;
  outline: 3px solid rgba(197, 140, 53, .22);
  outline-offset: 3px;
}

/* On dark artwork, retain the standard public-menu palette rather than turning
   the glass dark. A slightly denser glass layer and fine white text outline
   keep the original navy links legible without changing the visual identity. */
primary-menu .primary-menu--public.primary-menu--dark {
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .74), rgba(241, 242, 244, .56)),
    rgba(241, 242, 244, .62);
}
primary-menu .primary-menu--public.primary-menu--dark nav a {
  text-shadow:
    -1px 0 rgba(255, 255, 255, .34),
    0 1px rgba(255, 255, 255, .34),
    1px 0 rgba(255, 255, 255, .34),
    0 -1px rgba(255, 255, 255, .34);
}

@media (max-width: 900px) {
  primary-menu.primary-menu--public-shell { min-height: 72px; padding: 7px 8px 0; }
  primary-menu .primary-menu--public.primary-menu { border-radius: 14px; height: 58px; }
  primary-menu .primary-menu--public.primary-menu nav {
    border-radius: 14px;
    height: auto;
    left: 0;
    padding: 8px;
    right: 0;
    top: calc(100% + 8px);
    z-index: 2;
  }
  primary-menu .primary-menu--public.primary-menu nav a {
    min-height: 46px;
    padding: 0 16px;
  }
  primary-menu .primary-menu--public.primary-menu nav a + a { border-top: 1px solid #edf0f4; }
  primary-menu .primary-menu--public.primary-menu nav a::after { display: none; }
  primary-menu .primary-menu--public.primary-menu .get-started { height: 36px; min-width: 0; padding: 0 12px; }
  primary-menu .primary-menu--public.primary-menu .for-institutions { font-size: 11px; }
}

@media (max-width: 430px) {
  primary-menu .primary-menu--public.primary-menu .for-institutions { display: none; }
  primary-menu .primary-menu--public.primary-menu .get-started { font-size: 11px; padding: 0 10px; }
}
/* Signed-in treatment.
 *
 * The authenticated menu used to keep the original flat bar, so the moment an
 * investor signed in the site changed shape under them: a frosted capsule on
 * every public page, a white strip with an orange underline in the product.
 * It is now the same capsule — same height, same glass, same gold underline —
 * drawn slightly denser, because what sits behind it after sign-in is a light
 * working surface rather than a photograph. */
primary-menu.primary-menu--app-shell {
  min-height: 88px;
  padding: 10px clamp(18px, 3vw, 56px) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

primary-menu .primary-menu--authenticated.primary-menu {
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .8), rgba(241, 246, 252, .62)),
    rgba(241, 242, 244, .3);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(3, 23, 47, .09), inset 0 1px 0 rgba(255, 255, 255, .72);
  height: 72px;
  padding: 0 clamp(22px, 2.8vw, 42px);
}

primary-menu .primary-menu--authenticated.primary-menu nav { height: 72px; }
primary-menu .primary-menu--authenticated.primary-menu nav a,
primary-menu .primary-menu--authenticated.primary-menu nav a:hover,
primary-menu .primary-menu--authenticated.primary-menu nav a.active,
primary-menu .primary-menu--authenticated .products-menu summary {
  color: var(--vestmind-logo-color, #03172f);
  font-size: 14px;
  font-weight: 600;
}
primary-menu .primary-menu--authenticated.primary-menu nav a::after,
primary-menu .primary-menu--authenticated.primary-menu nav a.active::after {
  background: #c58c35;
  border-radius: 2px;
  bottom: 16px;
  content: '';
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) scaleX(0);
  transition: transform .2s ease;
  width: 100%;
}
primary-menu .primary-menu--authenticated.primary-menu nav a:hover::after,
primary-menu .primary-menu--authenticated.primary-menu nav a.active::after { transform: translateX(-50%) scaleX(1); }
primary-menu .primary-menu--authenticated.primary-menu nav a.is-locked,
primary-menu .primary-menu--authenticated.primary-menu nav a.is-locked:hover { color: #a7b1c2; }
primary-menu .primary-menu--authenticated.primary-menu nav a.is-locked::after { display: none; }

/* The account control answers the public menu's "Explore VestMind" button:
   white glass on a gold rule. */
primary-menu .primary-menu--authenticated .user-badge {
  background: rgba(255, 255, 255, .62);
  border: 1.5px solid rgba(197, 140, 53, .75);
  border-radius: 12px;
  height: 46px;
  padding: 0 14px 0 8px;
}
primary-menu .primary-menu--authenticated .user-badge:hover,
primary-menu .primary-menu--authenticated .user-badge[aria-expanded='true'] {
  background: #fff;
  border-color: #c58c35;
}
primary-menu .primary-menu--authenticated .user-badge strong { color: #03172f; }
primary-menu .primary-menu--authenticated .user-badge i { color: #c58c35; }
primary-menu .primary-menu--authenticated .user-dropdown {
  border-color: rgba(218, 220, 224, .9);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(3, 23, 47, .16);
  padding: 8px;
}
primary-menu .primary-menu--authenticated .user-dropdown button { border-radius: 10px; font-size: 13px; }
primary-menu .primary-menu--authenticated .user-dropdown button:hover,
primary-menu .primary-menu--authenticated .user-dropdown button:focus-visible { background: #f1f4fa; }

@media (max-width: 900px) {
  primary-menu.primary-menu--app-shell { min-height: 72px; padding: 7px 8px 0; }
  primary-menu .primary-menu--authenticated.primary-menu { border-radius: 14px; height: 58px; padding: 0 12px; }
  primary-menu .primary-menu--authenticated.primary-menu nav {
    border-radius: 14px;
    height: auto;
    left: 0;
    padding: 8px;
    right: 0;
    top: calc(100% + 8px);
    z-index: 2;
  }
  primary-menu .primary-menu--authenticated.primary-menu nav a { min-height: 46px; padding: 0 16px; }
  primary-menu .primary-menu--authenticated.primary-menu nav a + a { border-top: 1px solid #edf0f4; }
  primary-menu .primary-menu--authenticated.primary-menu nav a::after { display: none; }
  primary-menu .primary-menu--authenticated .user-badge { height: 40px; padding: 0 8px; }
}

.account-insight-dialog {
  border: 0;
  border-radius: 18px;
  height: min(860px, calc(100dvh - 32px));
  max-height: none;
  max-width: none;
  overflow: hidden;
  padding: 0;
  width: min(1180px, calc(100vw - 32px));
}
.account-insight-dialog::backdrop { background: rgba(3, 23, 47, .56); backdrop-filter: blur(4px); }
.account-insight-dialog iframe { border: 0; display: block; height: 100%; width: 100%; }
.account-insight-dialog__close {
  background: #fff;
  border: 1px solid #d9dee6;
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
  height: 38px;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  z-index: 2;
}

/*
 * The Target Portfolio is the widest thing this product draws — an allocation
 * and its composition side by side, then the argument for both underneath — so
 * its dialogue is given more room than the account views need. The rest of the
 * dialogue is deliberately identical: the same backdrop, the same close, the
 * same corner. One kind of overlay, three things it can hold.
 */
.target-portfolio-dialog {
  height: min(920px, calc(100dvh - 24px));
  width: min(1460px, calc(100vw - 24px));
}

@media (max-width: 900px) {
  .account-insight-dialog { border-radius: 0; height: 100dvh; width: 100vw; }
  .target-portfolio-dialog { height: 100dvh; width: 100vw; }
}

/* ── Products an investor has nothing in yet ──────────────────────────────────
 *
 * VestMonitor watches a portfolio; the other products read off a plan. Before
 * either exists there is nothing behind those links but an empty page with no
 * way to fill it, so they are shown greyed rather than hidden: the investor can
 * see what they are working towards, and the tooltip says what opens it. The
 * click is refused in `primary-menu.js` — this only makes the refusal visible.
 */
primary-menu .primary-menu.primary-menu nav a.is-locked {
  color: #a7b1c2;
  cursor: not-allowed;
}
primary-menu .primary-menu.primary-menu nav a.is-locked:hover { color: #a7b1c2; }
primary-menu .primary-menu.primary-menu nav a.is-locked::after { display: none; }
/*
 * The same refusal, inside the products dropdown.
 *
 * A locked product there is a card rather than a word, and the colour above
 * reaches none of it: the name, the line under it and the arrow all carry their
 * own. Without this, VestCall and VestFolio looked exactly as open as they had
 * been while quietly declining every click.
 */
primary-menu .primary-menu.primary-menu .products-menu__dropdown a.is-locked { cursor: not-allowed; }
primary-menu .primary-menu.primary-menu .products-menu__dropdown a.is-locked:hover { background: none; }
primary-menu .primary-menu.primary-menu .products-menu__dropdown a.is-locked:hover::before { opacity: 0; }
primary-menu .primary-menu.primary-menu .products-menu__dropdown a.is-locked .products-menu__icon { background: #f1f3f7; color: #a7b1c2; }
primary-menu .primary-menu.primary-menu .products-menu__dropdown a.is-locked:hover .products-menu__icon { background: #f1f3f7; color: #a7b1c2; }
primary-menu .primary-menu.primary-menu .products-menu__dropdown a.is-locked .products-menu__copy strong,
primary-menu .primary-menu.primary-menu .products-menu__dropdown a.is-locked .products-menu__copy small,
primary-menu .primary-menu.primary-menu .products-menu__dropdown a.is-locked .products-menu__arrow { color: #a7b1c2; }
primary-menu .primary-menu.primary-menu .products-menu__dropdown a.is-locked:hover .products-menu__arrow { color: #a7b1c2; }
