/* Menú de cuenta del portal; las acciones conservan sus controladores. */
#public-header .public-profile-menu {
  position: fixed;
  inset: auto;
  width: min(368px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgb(24 46 78 / 16%), 0 3px 10px rgb(24 46 78 / 4%);
  color: #1c2d45;
  font: 400 14px / 1.5 var(--font-ui);
  isolation: isolate;
}
#public-header .public-profile-menu[hidden] { display: none; }
#public-header .profile-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 0 20px;
  background: #f6f9fd;
}
#public-header .profile-menu-heading > span { font-size: 12px; font-weight: 600; color: #52657d; }
#public-header [data-profile-menu-close] {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #52657d;
  cursor: pointer;
}
#public-header [data-profile-menu-close]:hover { background: #e7eef8; color: #214f91; }
#public-header [data-profile-menu-close] svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#public-header .public-profile-identity {
  align-items: flex-start;
  gap: 14px;
  padding: 8px 20px 20px;
  background: #f6f9fd;
  border-bottom: 1px solid #e4ebf4;
}
#public-header .public-profile-avatar {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: #204d91;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%);
  font-size: 16px;
  font-weight: 650;
}
#public-header .public-profile-identity > div { flex: 1; gap: 4px; min-width: 0; }
#public-header .public-profile-identity :is(strong, small, em) {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  line-height: 1.5;
}
#public-header .public-profile-identity strong { font-size: 16px; font-weight: 650; color: #1c2d45; }
#public-header .public-profile-identity small { font-size: 13px; color: #52657d; }
#public-header .public-profile-identity em {
  justify-self: start;
  margin-top: 3px;
  padding: 3px 8px;
  border: 1px solid #cfdef3;
  border-radius: 6px;
  background: #eaf1fb;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: none;
  color: #214f91;
}
#public-header .public-profile-links { gap: 5px; padding: 12px; }
#public-header .public-profile-links > :is(a, button),
#public-header .public-profile-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: inherit;
  transition: background-color 140ms ease, border-color 140ms ease;
}
#public-header .public-profile-links > a { background: #eff5ff; border-color: #e0eafa; color: #214f91; }
#public-header .public-profile-links > :is(a, button) > svg,
#public-header .public-profile-logout > svg {
  box-sizing: content-box;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 10px;
  border-radius: 11px;
  background: #f0f4f9;
  color: #415c80;
}
#public-header .public-profile-links > a > svg { background: #dfeafb; color: #214f91; }
#public-header .public-profile-links > :is(a, button) > span,
#public-header .public-profile-logout > span { flex: 1; min-width: 0; gap: 3px; }
#public-header .public-profile-menu :is(.public-profile-links, .public-profile-logout) strong { font-size: 14px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
#public-header .public-profile-menu :is(.public-profile-links, .public-profile-logout) small { font-size: 12px; line-height: 1.5; color: #52657d; overflow-wrap: anywhere; }
#public-header .public-profile-links > :is(a, button)::after {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #60728a;
  border-top: 1.5px solid #60728a;
  transform: rotate(45deg);
  margin: 0 3px 0 2px;
}
#public-header .public-profile-links > :is(a, button):hover { background: #eaf1fb; border-color: #cfdef3; color: #214f91; }
#public-header .public-profile-logout {
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  border-top: 1px solid #e4ebf4;
  border-radius: 0 0 11px 11px;
  color: #ac3030;
}
#public-header .public-profile-logout > svg { background: #fff0f0; color: #ac3030; }
#public-header .public-profile-logout:hover { background: #fff5f5; color: #922727; }
#public-header .public-profile-menu :is(a, button):focus-visible { outline: 2px solid #245dac; outline-offset: -2px; }
#public-header .header-profile[aria-expanded="true"] { background: #eff5ff; border-color: #b9cff0; color: #214f91; }
@media (max-width: 380px) {
  #public-header .public-profile-identity { gap: 11px; padding-inline: 16px; }
  #public-header .profile-menu-heading { padding-left: 16px; }
  #public-header .public-profile-links > :is(a, button), #public-header .public-profile-logout { gap: 10px; padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  #public-header .public-profile-menu { animation: none; }
  #public-header .public-profile-links > :is(a, button), #public-header .public-profile-logout { transition: none; }
}
