.page-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: scale.$base;

  .hds-icon-tile {
    margin-right: scale.$base;
  }

  .first-run-hint {
    p {
      color: rgb(var(--text-muted));
      @include Typography.Interface(S);
      display: inline-block;
      margin-right: scale.$sm-2;
    }

    .copyable-code {
      margin: scale.$sm-2 0;

      code {
        display: inline-flex;
        font-size: 11px;
        flex-shrink: 0;
      }
    }
  }

  .title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    padding: scale.$sm-2 scale.$sm-2 scale.$sm-2 0;
    margin-right: auto;
    min-height: 76px;
    max-width: 100%;

    h1,
    h2 {
      margin: 0;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;

      code {
        font-size: 1em;
        font-weight: 600;
        margin: scale.$sm-2 0 scale.$sm-4;
      }
    }

    small {
      display: flex;
      align-items: center;
      color: rgb(var(--text-muted));
      @include Typography.Interface(M);
      padding-bottom: scale.$sm-3;

      .icon {
        width: 16px;
        height: 16px;
        margin-right: scale.$sm-3;
      }
    }

    .title-wrapper {
      display: flex;
      align-items: center;

      .workspace-switcher {
        margin-left: scale.$base;
      }
      .workspace-switching-indicator {
        margin-left: scale.$sm--2;
      }
    }
  }

  &.projects-header {
    margin-top: scale.$lg-4;
  }
}
