/* People workspace styles are isolated from the legacy generic hero and menu rules. */
body .super-shell.is-authenticated .page-content > .people-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body .people-workspace-header > div:first-child,
body .people-workspace-header .people-hero-copy,
body .people-workspace-header .page-actions {
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body .people-workspace-header h1 {
  margin: 0 0 5px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

body .people-workspace-header .people-hero-count {
  display: none;
}

body .people-workspace-header .page-actions {
  display: flex;
  justify-content: flex-end;
}

body .people-action-menu[open]::before {
  content: none !important;
}

body .people-action-menu[open] > .people-action-backdrop {
  display: block !important;
  z-index: 245 !important;
  background: rgba(2, 10, 21, .54) !important;
  backdrop-filter: blur(3px) !important;
}

body .people-action-drawer {
  display: block !important;
  position: fixed !important;
  z-index: 250 !important;
  top: 104px !important;
  right: 22px !important;
  bottom: 22px !important;
  left: auto !important;
  width: min(368px, calc(100vw - 32px)) !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 18px 16px !important;
  box-sizing: border-box !important;
  border: 1px solid #24476d !important;
  border-radius: 16px !important;
  background-color: #081b2f !important;
  background: #081b2f !important;
  background-image: linear-gradient(180deg, #0a2037 0%, #071827 100%) !important;
  color: #f4f8ff !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .34) !important;
  opacity: 1 !important;
  isolation: isolate !important;
  backdrop-filter: none !important;
}

html[data-theme="light"] body .people-action-drawer {
  border-color: #c7d9ed !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #10233c !important;
}

body .people-action-drawer::before,
body .people-action-drawer::after {
  content: none !important;
}

body .people-action-drawer > * {
  position: relative;
  z-index: 1;
}

body .people-action-person {
  position: relative;
  display: grid !important;
  align-items: center !important;
  gap: 12px !important;
  grid-template-columns: 46px minmax(0, 1fr) 40px;
  margin: 0 0 14px;
  padding: 0 0 16px;
}

body .people-action-drawer .people-action-close {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  color: var(--text) !important;
  background: #102b47 !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

html[data-theme="light"] body .people-action-drawer .people-action-close {
  background: #eef5fc !important;
}

body .people-action-drawer > p {
  margin: 15px 10px 6px !important;
  color: #8fa9c5 !important;
}

body .people-action-drawer > a,
body .people-action-drawer > button,
body .people-action-drawer > form > button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #f4f8ff !important;
  background: transparent !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

html[data-theme="light"] body .people-action-drawer > a,
html[data-theme="light"] body .people-action-drawer > button,
html[data-theme="light"] body .people-action-drawer > form > button {
  color: #10233c !important;
}

body .people-action-drawer > form {
  width: 100% !important;
  margin: 0 !important;
}

body .people-action-drawer > a:hover,
body .people-action-drawer > button:hover,
body .people-action-drawer > form > button:hover {
  background: #102b47 !important;
}

html[data-theme="light"] body .people-action-drawer > a:hover,
html[data-theme="light"] body .people-action-drawer > button:hover,
html[data-theme="light"] body .people-action-drawer > form > button:hover {
  background: #eef5fc !important;
}

@media (min-width: 1101px) {
  body .people-summary-grid {
    gap: 12px !important;
    margin-bottom: 18px !important;
  }

  body .people-summary-item {
    min-height: 76px !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
  }

  body .people-directory-panel {
    padding: 24px !important;
    border-radius: 18px !important;
  }
}

body .people-action-drawer .people-action-close:hover,
body .people-action-drawer .people-action-close:focus-visible {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

@media (max-width: 760px) {
  body .super-shell.is-authenticated .page-content > .people-workspace-header {
    align-items: stretch;
    flex-direction: column;
  }

  body .people-workspace-header .page-actions,
  body .people-workspace-header .page-actions .primary-btn {
    width: 100%;
  }

  body .people-action-drawer {
    top: auto !important;
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-height: min(78vh, 680px) !important;
  }

  body .people-action-menu[open] > .people-action-backdrop {
    background: rgba(2, 10, 21, .42) !important;
    backdrop-filter: blur(2px) !important;
  }
}
